Skip to content

chore(deps): bump astro from 7.3.2 to 7.3.3 #849

chore(deps): bump astro from 7.3.2 to 7.3.3

chore(deps): bump astro from 7.3.2 to 7.3.3 #849

# Based on: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
name: Dependabot auto-merge
on:
pull_request:
permissions:
pull-requests: write
contents: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v3.1.0
with:
github-token: ${{ secrets.GREEN_ECOLUTION_PAT }}
- name: Check if already approved
id: check-approval
run: |
APPROVALS=$(gh pr view "$PR_URL" --json reviews --jq '[.reviews[] | select(.state == "APPROVED")] | length')
echo "approvals=$APPROVALS" >> $GITHUB_OUTPUT
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GREEN_ECOLUTION_PAT }}
- name: Approve PR
if: steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.check-approval.outputs.approvals == '0'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GREEN_ECOLUTION_PAT }}
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GREEN_ECOLUTION_PAT }}