Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…chuu.github.io into dependabot/github_actions/actions/configure-pages-4
  • Loading branch information
dependabot[bot] committed Feb 9, 2024
2 parents 5b87812 + 66ad476 commit 21bd59c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/dependabot.auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login }} == 'dependabot[bot]'
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.TOKEN_GITHUB }}'
- name: Enable auto-merge for Dependabot PRs
run: |
git config --global user.name "dependabot[bot]"
git config --global user.email "dependabot[bot]@users.noreply.github.com"
gh pr merge --auto --merge "$PR_URL"
gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.TOKEN_GITHUB}}
8 changes: 4 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18'

Expand All @@ -33,10 +33,10 @@ jobs:
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './build'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 21bd59c

Please sign in to comment.