Skip to content

Commit

Permalink
chore(auto-merge): replace workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Jul 8, 2024
1 parent 8f64852 commit 3ad31e3
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: "auto-merge"
on: [pull_request_target]
name: auto-merge

on:
pull_request_target:
branches:
- main

jobs:
auto-merge:
uses: mdn/workflows/.github/workflows/auto-merge.yml@main
with:
target-repo: "mdn/mdn-http-observatory"
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}

- name: Squash and merge
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' }}
env:
GITHUB_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }}
run: gh pr comment ${{ github.event.pull_request.html_url }} --body "@dependabot squash and merge"

0 comments on commit 3ad31e3

Please sign in to comment.