Skip to content

Commit e7b38bd

Browse files
committed
refs
1 parent 3d17b1c commit e7b38bd

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/milestone-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, edited, closed, reopened, deleted, milestoned, demilestoned]
88
pull_request:
99
types: [opened, edited, closed, reopened, milestoned, demilestoned]
10+
push:
11+
tags:
12+
- '*'
1013
workflow_dispatch:
1114
inputs:
1215
milestone:
@@ -97,6 +100,25 @@ jobs:
97100
}
98101
}
99102
103+
// Handle tag push - find matching milestone and sync
104+
if (context.eventName === 'push' && context.ref.startsWith('refs/tags/')) {
105+
const tagName = context.ref.replace('refs/tags/', '');
106+
const milestones = [];
107+
for await (const response of github.paginate.iterator(
108+
github.rest.issues.listMilestones,
109+
{ owner, repo, state: 'all', per_page: 100 }
110+
)) {
111+
milestones.push(...response.data);
112+
}
113+
const milestone = milestones.find(ms => ms.title === tagName);
114+
if (milestone) {
115+
await syncMilestone(milestone);
116+
} else {
117+
console.log(`No milestone found matching tag '${tagName}'`);
118+
}
119+
return;
120+
}
121+
100122
// Handle manual trigger - rebuild all or specific milestone
101123
if (context.eventName === 'workflow_dispatch') {
102124
const inputMilestone = context.payload.inputs?.milestone;

src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"MSBuild.Sdk.Extras": "3.0.44"
44
},
55
"sdk": {
6-
"version": "10.0.200",
6+
"version": "10.0.201",
77
"allowPrerelease": true,
88
"rollForward": "latestFeature"
99
}

0 commit comments

Comments
 (0)