forked from kubewarden/adm-controller
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.88 KB
/
open-release-pr.yml
File metadata and controls
53 lines (44 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
workflow_dispatch:
inputs:
version:
description: "stack version (E.g: v1.32.0-rc2)"
required: true
type: string
name: Open release PR
permissions: {}
jobs:
open-release-pr:
name: "Open PR to release Admission Controller"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }} # zizmor: ignore[secrets-outside-env]
private-key: ${{ secrets.APP_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
- name: Install cargo-set-version
run: cargo install --locked --version 0.13.9 cargo-edit
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@2c3221bc5f4499a99fec2c87d9de4a83cb30e990 # v3.1.3
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@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
- 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