Open release PR #11
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
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "stack version (E.g: v1.32.0-rc2)" | |
| required: true | |
| type: string | |
| name: Open release PR | |
| jobs: | |
| open-release-pr: | |
| name: "Open PR to release Admission Controller" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2 | |
| id: generate-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Install cargo-set-version | |
| run: cargo install cargo-edit | |
| - name: Install Updatecli in the runner | |
| uses: updatecli/updatecli-action@4b17f4ea784de29f71f85f9bc4955402ba1ae53c # v2.100.0 | |
| with: | |
| # Pinned to v0.109.0 due to a behavior change in newer versions that breaks the update script | |
| version: v0.109.0 | |
| - name: Install helm | |
| # Helm and helm plugins installation required by the updatecli release action | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| - name: Install helm values schema json plugin | |
| # Disable plugin verification until helm v4 is supported | |
| run: helm plugin install https://github.com/losisin/helm-values-schema-json.git --verify=false | |
| - name: Open PR with updatecli | |
| env: | |
| UPDATECLI_GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| UPDATECLI_GITHUB_OWNER: ${{ github.repository_owner }} | |
| RELEASE_VERSION: ${{ inputs.version }} | |
| run: |- | |
| updatecli compose apply --file ./updatecli/open-release-pr.yaml |