Bump org.testcontainers:testcontainers-bom from 1.20.4 to 1.20.5 in /app #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot auto-approve | |
on: pull_request | |
permissions: | |
pull-requests: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'prenagha/spring-boot-strato' | |
steps: | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2 | |
- uses: actions/checkout@v4 | |
- name: Approve a PR if not already approved | |
run: | | |
# sets the upstream metadata for `gh pr status` | |
gh pr checkout "$PR_URL" | |
if [[ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" == "APPROVED" ]] | |
then | |
echo "PR already approved, skipping auto approve" | |
elif [[ "${{steps.dependabot-metadata.outputs.update-type}}" == "version-update:semver-major" ]] | |
then | |
echo "PR contains major version upgrade, skipping auto approve" | |
else | |
gh pr review --approve "$PR_URL"; | |
fi | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |