-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
25 lines (23 loc) · 874 Bytes
/
merge-version-bump-pr.yml
File metadata and controls
25 lines (23 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Merge Version Bump PR
on:
# Trigger the workflow when a comment is created on an issue or pull request
issue_comment:
types: [created]
jobs:
merge-pr:
# Only run if the comment is on a PR and the comment body matches exactly "Merge my PR"
if: >-
github.event.issue.pull_request &&
github.event.comment.body == 'Merge my PR' &&
(
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'OWNER'
)
uses: MetaMask/github-tools/.github/workflows/merge-approved-pr.yml@v1
with:
pr-number: ${{ github.event.issue.number }}
# Merge PRs from version-bump/X.Y.Z into main
required-base-branch: 'main'
head-branch-pattern: '^version-bump/[0-9]+\.[0-9]+\.[0-9]+$'
secrets:
github-token: ${{ secrets.METAMASK_MOBILE_BRANCH_SYNC_TOKEN }}