Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions .github/workflows/pull-request-helper.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Loading