File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
2+ name : Dependabot auto-approve and merge
3+ on : pull_request
4+
5+ permissions :
6+ pull-requests : write
7+
8+ env :
9+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10+
11+ jobs :
12+ dependabot :
13+ runs-on : ubuntu-latest
14+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'splunk/splunk-sdk-python'
15+ steps :
16+ - name : Dependabot metadata
17+ uses : dependabot/fetch-metadata@496eb7a6d053154f00e01044ab472077386f5a35
18+ 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 }}"
You can’t perform that action at this time.
0 commit comments