Skip to content

Commit

Permalink
Refactor ci and dependabot pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Aug 25, 2024
1 parent 690e299 commit 7034755
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ permissions:
pull-requests: write

jobs:
dependabot:
test:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js latest
Expand All @@ -32,6 +27,16 @@ jobs:
npm run build
env:
CI: true

dependabot:
runs-on: ubuntu-latest
needs: test
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
Expand Down

0 comments on commit 7034755

Please sign in to comment.