Skip to content

Bump puma from 6.6.0 to 7.2.1 in /apps/epp_proxy/priv/test_backend_app #14

Bump puma from 6.6.0 to 7.2.1 in /apps/epp_proxy/priv/test_backend_app

Bump puma from 6.6.0 to 7.2.1 in /apps/epp_proxy/priv/test_backend_app #14

name: Auto approve & merge Dependabot and Renovate PRs
on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled]
branches: [master]
permissions:
contents: write
pull-requests: write
jobs:
auto-approve-merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install GitHub CLI
run: |
sudo apt-get update
sudo apt-get install -y gh
- name: Auto approve PR
if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]'
uses: hmarr/auto-approve-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch Dependabot metadata
if: github.actor == 'dependabot[bot]'
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if PR should be auto-merged
id: check_auto_merge
run: |
if [ "${{ github.actor }}" == "dependabot[bot]" ]; then
if [[ "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-patch" || "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-minor" ]]; then
echo "auto_merge=true" >> $GITHUB_OUTPUT
else
echo "auto_merge=false" >> $GITHUB_OUTPUT
fi
elif [ "${{ github.actor }}" == "renovate[bot]" ]; then
patch_label=$(echo "${{ github.event.pull_request.labels.*.name }}" | grep -w patch || true)
minor_label=$(echo "${{ github.event.pull_request.labels.*.name }}" | grep -w minor || true)
if [ -n "$patch_label" ] || [ -n "$minor_label" ]; then
echo "auto_merge=true" >> $GITHUB_OUTPUT
else
echo "auto_merge=false" >> $GITHUB_OUTPUT
fi
fi
shell: bash
- name: Wait for CI checks
if: steps.check_auto_merge.outputs.auto_merge == 'true'
uses: lewagon/wait-on-check-action@v1.7.0
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
running-workflow-name: 'auto-approve-merge'
- name: Auto-merge PR
if: steps.check_auto_merge.outputs.auto_merge == 'true'
run: |
gh pr merge --auto --merge ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}