From 094aad3ab938850ab7b17e06776ef37afef7587b Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Sat, 22 Nov 2025 20:57:27 -0800 Subject: [PATCH] Fix pull-request-helper --- .github/workflows/pull-request-helper.yml | 31 +++-------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pull-request-helper.yml b/.github/workflows/pull-request-helper.yml index d86abbc028a..415bedcf377 100644 --- a/.github/workflows/pull-request-helper.yml +++ b/.github/workflows/pull-request-helper.yml @@ -1,24 +1,14 @@ name: Pull request helper on: - pull_request_target: + push: + branches: + - 'dependabot/**/*' jobs: pull-request-helper: - if: github.event.pull_request.user.login == 'dependabot[bot]' runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - with: - # this is the personal access token used for "git push" below - # which is needed in order to trigger workflows - token: ${{ secrets.PR_HELPER_GITHUB_TOKEN }} - - - name: Check out PR branch - env: - NUMBER: ${{ github.event.pull_request.number }} - GH_TOKEN: ${{ github.token }} - run: | - gh pr checkout $NUMBER - name: Setup Gradle uses: gradle/actions/setup-gradle@v5 @@ -30,16 +20,6 @@ jobs: git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - # - name: Spotless - # env: - # NUMBER: ${{ github.event.issue.number }} - # run: | - # ./gradlew spotlessApply - # if git diff --quiet; then - # exit 0 # success - # fi - # git commit -a -m "./gradlew spotlessApply" - - name: Update license report env: NUMBER: ${{ github.event.issue.number }} @@ -67,7 +47,4 @@ jobs: git commit -m "./gradlew resolveAndLockAll --write-locks" - name: Push - env: - GH_TOKEN: ${{ github.token }} - run: | - git push + run: git push