Release PR #25
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: Release PR | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| current_version: | |
| description: "Current version to replace" | |
| required: true | |
| default: "3.3.2" | |
| new_version: | |
| description: "Version to release" | |
| required: true | |
| default: "3.4.3" | |
| current_helm_version: | |
| description: "Current helm version to replace" | |
| required: true | |
| default: "1.0.2" | |
| new_helm_version: | |
| description: "Helm version to release" | |
| required: true | |
| default: "1.1.3" | |
| current_operator_version: | |
| description: "Current operator version to replace" | |
| required: true | |
| default: "2.3.0" | |
| new_operator_version: | |
| description: "Operator version to release" | |
| required: true | |
| default: "2.3.1" | |
| k8s_versions: | |
| description: "Kubernetes versions this release has been tested on" | |
| required: true | |
| default: "x.xx-x.xx" | |
| release_date: | |
| description: "Date for this release" | |
| required: true | |
| default: "%d %b %Y" | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Branch | |
| id: branch | |
| run: | | |
| version=${{ github.event.inputs.new_version }} | |
| version=${version%.*} | |
| echo "branch=release-$version" >> $GITHUB_OUTPUT | |
| - name: Checkout Repository | |
| uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
| with: | |
| ref: ${{ steps.branch.outputs.branch }} | |
| token: ${{ secrets.NGINX_PAT }} | |
| - name: Replace | |
| run: | | |
| .github/scripts/release-version-update.sh \ | |
| ${{ github.event.inputs.current_version }} ${{ github.event.inputs.current_helm_version }} ${{ github.event.inputs.current_operator_version }} \ | |
| ${{ github.event.inputs.new_version }} ${{ github.event.inputs.new_helm_version }} ${{ github.event.inputs.new_operator_version }} | |
| .github/scripts/release-notes-update.sh ${{ github.event.inputs.new_version }} ${{ github.event.inputs.new_helm_version }} "${{ github.event.inputs.k8s_versions }}" "${{ github.event.inputs.release_date }}" | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
| with: | |
| token: ${{ secrets.NGINX_PAT }} | |
| commit-message: Release ${{ github.event.inputs.new_version }} | |
| title: Release ${{ github.event.inputs.new_version }} | |
| branch: docs/release-${{ github.event.inputs.new_version }} | |
| author: nginx-bot <[email protected]> | |
| body: | | |
| This automated PR updates the docs for ${{ github.event.inputs.new_version }} release. |