Skip to content

Commit 24559f0

Browse files
chore: Synced local '.github/workflows/dependabot.yml' with remote '.github/workflows/dependabot.yml' (#193)
1 parent cded07a commit 24559f0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/dependabot.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Dependabot auto-merge
15+
name: Dependabot
1616
on: pull_request
1717

1818
permissions:
@@ -22,9 +22,15 @@ jobs:
2222
dependabot:
2323
runs-on: ubuntu-latest
2424
if: ${{ github.actor == 'dependabot[bot]' }}
25+
env:
26+
PR_URL: ${{github.event.pull_request.html_url}}
27+
GITHUB_TOKEN: ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
2528
steps:
26-
- name: Enable auto-merge for Dependabot PRs
29+
- name: approve
30+
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`."
31+
if: ${{ github.event.label.name == 'automatic' }}
32+
- name: approve-instructions
33+
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"
34+
if: ${{ github.event.label.name != 'automatic' }}
35+
- name: merge
2736
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
28-
env:
29-
PR_URL: ${{github.event.pull_request.html_url}}
30-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)