Skip to content

Commit 094aad3

Browse files
committed
Fix pull-request-helper
1 parent fc622f4 commit 094aad3

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed
Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
name: Pull request helper
22
on:
3-
pull_request_target:
3+
push:
4+
branches:
5+
- 'dependabot/**/*'
46

57
jobs:
68
pull-request-helper:
7-
if: github.event.pull_request.user.login == 'dependabot[bot]'
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v5
11-
with:
12-
# this is the personal access token used for "git push" below
13-
# which is needed in order to trigger workflows
14-
token: ${{ secrets.PR_HELPER_GITHUB_TOKEN }}
15-
16-
- name: Check out PR branch
17-
env:
18-
NUMBER: ${{ github.event.pull_request.number }}
19-
GH_TOKEN: ${{ github.token }}
20-
run: |
21-
gh pr checkout $NUMBER
2212

2313
- name: Setup Gradle
2414
uses: gradle/actions/setup-gradle@v5
@@ -30,16 +20,6 @@ jobs:
3020
git config user.name github-actions[bot]
3121
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
3222
33-
# - name: Spotless
34-
# env:
35-
# NUMBER: ${{ github.event.issue.number }}
36-
# run: |
37-
# ./gradlew spotlessApply
38-
# if git diff --quiet; then
39-
# exit 0 # success
40-
# fi
41-
# git commit -a -m "./gradlew spotlessApply"
42-
4323
- name: Update license report
4424
env:
4525
NUMBER: ${{ github.event.issue.number }}
@@ -67,7 +47,4 @@ jobs:
6747
git commit -m "./gradlew resolveAndLockAll --write-locks"
6848
6949
- name: Push
70-
env:
71-
GH_TOKEN: ${{ github.token }}
72-
run: |
73-
git push
50+
run: git push

0 commit comments

Comments
 (0)