Skip to content

Commit 0fbe5d5

Browse files
committed
Auto-create patch version on regional info merge
This workflow automatically creates a new patch version tag when a regional information update PR is merged. The workflow triggers on PR close events and verifies the PR was actually merged (not just closed). Assisted-by: Cursor (claude-4.5-sonnet)
1 parent d6792ff commit 0fbe5d5

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Auto-create Patch Version
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- "2.4"
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
create-patch-version:
15+
name: Create Patch Version
16+
runs-on: ubuntu-latest
17+
18+
# Only run if PR was merged and the title contains "Update Regional Information"
19+
if: |
20+
github.event.pull_request.merged == true &&
21+
contains(github.event.pull_request.title, 'Update Regional Information')
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
with:
27+
ref: ${{ github.event.pull_request.base.ref }}
28+
fetch-depth: 0
29+
30+
- name: Bump version and push tag
31+
uses: anothrNick/github-tag-action@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
DEFAULT_BUMP: patch
35+
RELEASE_BRANCHES: ${{ github.event.pull_request.base.ref }}
36+
TAG_CONTEXT: branch
37+

0 commit comments

Comments
 (0)