Skip to content

Commit f71df89

Browse files
committed
Refactoring
1 parent 9e81ea4 commit f71df89

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
2-
name: Dependabot auto-approve and merge
2+
name: Dependabot auto-merge
33
on: pull_request
4-
54
permissions:
65
pull-requests: write
7-
86
env:
97
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108

119
jobs:
1210
auto-merge-dependabot:
1311
runs-on: ubuntu-latest
14-
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'splunk/splunk-sdk-python'
12+
if: github.event.pull_request.user.login == 'dependabot[bot]'
1513
steps:
16-
- name: Dependabot metadata
14+
- name: Fetch dependency metadata
1715
uses: dependabot/fetch-metadata@496eb7a6d053154f00e01044ab472077386f5a35
1816
with:
19-
github-token: "${{ secrets.GITHUB_TOKEN }}"
20-
- name: Approve and auto-merge
21-
run: |
22-
gh pr review --approve "${{ github.event.pull_request.html_url }}"
23-
gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
- name: Approve PR
19+
run: gh pr review --approve "${{ github.event.pull_request.html_url }}"
20+
- name: Merge PR
21+
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"

0 commit comments

Comments
 (0)