998cf21518
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1 to 2. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1...v2) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
name: Auto-merge updates
|
|
on: pull_request
|
|
permissions:
|
|
contents: write
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
auto-merge-dependabot:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'monosans' && github.actor == 'dependabot[bot]' }}
|
|
steps:
|
|
- id: dependabot-metadata
|
|
uses: dependabot/fetch-metadata@v2
|
|
- if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' && steps.dependabot-metadata.outputs.package-ecosystem != 'docker' }}
|
|
run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
auto-merge-updates:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'monosans' && github.actor_id == '158570872' }}
|
|
steps:
|
|
- run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|