This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
build(deps): bump codecov/codecov-action from 3.1.6 to 4.3.0 #3252
Workflow file for this run
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-merge | |
on: pull_request_target | |
permissions: read-all | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.1.1 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Enable auto-merge for Dependabot PRs | |
if: | | |
steps.metadata.outputs.dependency-type != 'indirect' | |
&& steps.metadata.outputs.update-type != 'version-update:semver-major' | |
run: | | |
if [ "$(gh pr view "$PR_URL" --json reviewDecision -q .reviewDecision)" != "APPROVED" ]; then | |
gh pr review --approve "$PR_URL" | |
else | |
echo "PR already approved, skipping additional approvals to minimize emails/notification noise." | |
fi | |
gh pr merge --auto --squash "$PR_URL" | |
gh pr edit "$PR_URL" --add-label "auto-merge" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |