Skip to content

Commit

Permalink
chore: Synced local '.github/workflows/dependabot.yml' with remote '.…
Browse files Browse the repository at this point in the history
…github/workflows/dependabot.yml'
  • Loading branch information
googlemaps-bot committed Jun 26, 2023
1 parent 9d11361 commit 1e9a8de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ permissions:
contents: write

jobs:
test:
uses: ./.github/workflows/test.yml
dependabot:
needs: test
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
steps:
- name: approve
run: gh pr review --comment -b "Automatically approved since dependabot is not [configured](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels) with label `do not merge`."
if: ${{ github.event.label.name != 'do not merge' }}
- name: approve-instructions
run: echo "Configure dependabot with label 'do not merge' to prevent it from being automatically approved and merged. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels"
if: ${{ github.event.label.name == 'do not merge' }}
run: gh pr review --approve "$PR_URL"
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 comments on commit 1e9a8de

Please sign in to comment.