Skip to content

deps: Bump actions/upload-artifact from 3.1.3 to 4.0.0 in /.github/workflows #31

deps: Bump actions/upload-artifact from 3.1.3 to 4.0.0 in /.github/workflows

deps: Bump actions/upload-artifact from 3.1.3 to 4.0.0 in /.github/workflows #31

# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request
name: Enable auto-merge on trivial Dependabot pull requests
on:
pull_request:
branches:
- main
paths:
- '.github/**'
- 'templates/**'
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
name: Enable auto-merge on trivial Dependabot pull requests
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- if: ${{ contains(steps.metadata.outputs.dependency-names, 'actions/checkout') }}
name: Enable auto-merge on Dependabot PR if it's targeting actions/checkout
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr merge --auto --merge "$PR_URL"
# Enables auto-merge on PR with the merge commit merge method.
# This causes the PR to be merged when all the checks and approvals have passed.