Skip to content

Commit

Permalink
chore: Synced file(s) with googlemaps/.github (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
googlemaps-bot authored May 11, 2022
1 parent e40b160 commit 762f38a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ updates:
directory: "/"
schedule:
interval: "daily"
labels:
- "automatic" # see .github/workflows/dependabot.yml
8 changes: 4 additions & 4 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
GITHUB_TOKEN: ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
steps:
- name: approve
run: gh pr review --comment -b "Automatically approved since dependabot is [configured](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels) with label `automatic`."
if: ${{ github.event.label.name == 'automatic' }}
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 'automatic' to have it 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 != 'automatic' }}
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' }}
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 comments on commit 762f38a

Please sign in to comment.