File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate Release Maintenance
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release_tag :
7+ description : ' The release version (e.g., v2.11.10-alpha1)'
8+ required : true
9+ release_date :
10+ description : ' The release date (e.g., Jan 28, 2026)'
11+ required : true
12+
13+ jobs :
14+ build-and-commit :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
18+ pull-requests : write
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+
24+ - name : Generate Release Notes
25+ run : ./release-maintenance.sh -t "${{ inputs.release_tag }}" -d "${{ inputs.release_date }}"
26+
27+ - name : Create Pull Request
28+ env :
29+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ TAG : ${{ inputs.release_tag }}
31+ run : |
32+ # Extract version from tag (e.g., v2.11.10-alpha1 -> v2.11.10)
33+ VERSION=${TAG%%-*}
34+ BRANCH_NAME="${VERSION}-maintenance"
35+
36+ git config user.name "github-actions[bot]"
37+ git config user.email "github-actions[bot]@users.noreply.github.com"
38+
39+ git checkout -b "$BRANCH_NAME"
40+ git add .
41+ git commit -m "$VERSION - Rancher Manager Release Maintenance"
42+ git push origin "$BRANCH_NAME"
43+
44+ gh pr create \
45+ --title "$VERSION - Rancher Manager Release Maintenance" \
46+ --body "Automated release maintenance updates for version $VERSION." \
47+ --base main \
48+ --head "$BRANCH_NAME"
You can’t perform that action at this time.
0 commit comments