Publish to Release #17
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: Publish to Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| VERSION: | |
| description: 'Rancher major version (v2.13)' | |
| default: 'v2.13' | |
| type: string | |
| required: true | |
| jobs: | |
| publish-to-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ github.repository }} | |
| ref: "dev/${{ github.event.inputs.VERSION }}" | |
| fetch-depth: 0 | |
| - name: Sync repository | |
| env: | |
| VERSION: ${{ github.event.inputs.VERSION }} | |
| run: | | |
| set -x | |
| git remote -v | |
| git branch -r | |
| git checkout -t origin/release/${VERSION} | |
| git rebase dev/${VERSION} | |
| git push origin release/${VERSION} |