Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Dependabot CI | ||
"on": | ||
pull_request_target: {} | ||
jobs: | ||
dependabot_ci: | ||
Check failure on line 7 in .github/workflows/dependabot_ci.yaml GitHub Actions / Dependabot CIInvalid workflow file
|
||
name: Dependabot CI | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Fetch PR metadata | ||
uses: dependabot/fetch-metadata@v2.0.0 | ||
id: dependabot-metadata | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Approve PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
- name: Merge PR | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_URL: ${{ github.event.pull_request.html_url }} |