Skip to content

Bump actions/setup-java from 3 to 4 #9

Bump actions/setup-java from 3 to 4

Bump actions/setup-java from 3 to 4 #9

name: Check Pull Request
on:
pull_request:
permissions:
id-token: write
contents: write
checks: write
pull-requests: write
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
auto_merge_dependabot:
name: Merge Dependabot pull request
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
needs: [ build ]
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
gh pr comment $PR_URL --body "No issues found, auto-merging the Dependabot pull request."
gh pr merge $PR_URL --rebase --delete-branch
auto_close_dependabot:
name: Close Dependabot pull request
runs-on: ubuntu-latest
if: failure() && github.event.pull_request.user.login == 'dependabot[bot]'
needs: [ build ]
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
gh pr comment $PR_URL --body "Issues found, auto-closing the Dependabot pull request."
gh pr close $PR_URL --delete-branch