File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed
Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change 11name : Pull request helper
22on :
3- push :
4- branches :
5- - ' dependabot/**/*'
3+ pull_request_target :
64
75permissions :
86 contents : write
97
108jobs :
119 pull-request-helper :
10+ if : github.event.pull_request.user.login == 'dependabot[bot]'
1211 runs-on : ubuntu-latest
1312 steps :
1413 - uses : actions/checkout@v6
14+ with :
15+ # this is the personal access token used for "git push" below
16+ # which is needed in order to trigger workflows
17+ token : ${{ secrets.PR_HELPER_GITHUB_TOKEN }}
18+
19+ - name : Check out PR branch
20+ env :
21+ NUMBER : ${{ github.event.pull_request.number }}
22+ GH_TOKEN : ${{ github.token }}
23+ run : |
24+ gh pr checkout $NUMBER
1525
1626 - name : Setup Gradle
1727 uses : gradle/actions/setup-gradle@v5
2333 git config user.name github-actions[bot]
2434 git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2535
36+ # - name: Spotless
37+ # env:
38+ # NUMBER: ${{ github.event.issue.number }}
39+ # run: |
40+ # ./gradlew spotlessApply
41+ # if git diff --quiet; then
42+ # exit 0 # success
43+ # fi
44+ # git commit -a -m "./gradlew spotlessApply"
45+
2646 - name : Update license report
2747 env :
2848 NUMBER : ${{ github.event.issue.number }}
5070 git commit -m "./gradlew resolveAndLockAll --write-locks"
5171
5272 - name : Push
53- run : git push
73+ env :
74+ GH_TOKEN : ${{ github.token }}
75+ run : |
76+ git push
You can’t perform that action at this time.
0 commit comments