Generate Release Maintenance #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Release Maintenance | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release_tag: | |
| description: 'The release version (e.g., v2.11.10-alpha1)' | |
| required: true | |
| release_date: | |
| description: 'The release date (e.g., Jan 28, 2026)' | |
| required: true | |
| jobs: | |
| build-and-commit: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Generate Release Notes | |
| run: ./release-maintenance.sh -t "${{ inputs.release_tag }}" -d "${{ inputs.release_date }}" | |
| - name: Create Pull Request | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAG: ${{ inputs.release_tag }} | |
| run: | | |
| # Extract version from tag (e.g., v2.11.10-alpha1 -> v2.11.10) | |
| VERSION=${TAG%%-*} | |
| BRANCH_NAME="${VERSION}-maintenance" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git checkout -b "$BRANCH_NAME" | |
| git add . | |
| git commit -m "$VERSION - Rancher Manager Release Maintenance" | |
| git push origin "$BRANCH_NAME" | |
| gh pr create \ | |
| --title "$VERSION - Rancher Manager Release Maintenance" \ | |
| --body "Automated release maintenance updates for version $VERSION." \ | |
| --base main \ | |
| --head "$BRANCH_NAME" |