Skip to content

Commit

Permalink
operator release updates (#6168)
Browse files Browse the repository at this point in the history
* update to use new operator sync workflow config
  • Loading branch information
pdabelf5 authored Aug 13, 2024
1 parent ecb5b9b commit 89a8602
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
description: "CNAB version for Azure Marketplace"
required: false
type: string
operator_version:
description: "Operator version to set"
required: false
type: string
release_branch:
description: "Branch to release from"
required: true
Expand Down Expand Up @@ -53,6 +57,7 @@ jobs:
go_code_md5: ${{ steps.vars.outputs.go_code_md5 }}
binary_cache_sign_hit: ${{ steps.binary-cache-sign.outputs.cache-hit }}
date: ${{ steps.vars.outputs.date }}
k8s_version: ${{ steps.vars.outputs.k8s_version }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -73,6 +78,8 @@ jobs:
./.github/scripts/variables.sh go_code_md5 >> $GITHUB_OUTPUT
date=$(date "+%Y%m%d")
echo "date=${date}" >> $GITHUB_OUTPUT
k8s_version=$(grep kindest tests/Dockerfile | cut -d ':' -f 2 | cut -d '@' -f 1)
echo "k8s_version=${k8s_version}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Fetch Cached Signed Binary Artifacts
Expand Down Expand Up @@ -285,7 +292,7 @@ jobs:
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'operator') && !contains(inputs.skip_step, 'publish-helm-chart') }}
name: Trigger PR for Operator
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
needs: [variables,publish-helm-chart]
steps:
- name:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand All @@ -298,7 +305,10 @@ jobs:
workflow_id: 'sync-chart.yml',
ref: 'main',
inputs: {
chart_version: '${{ inputs.chart_version }}'
chart_version: '${{ inputs.chart_version }}',
operator_version: '${{ inputs.operator_version }}',
k8s_version: '${{ needs.variables.outputs.k8s_version }}',
dry_run: '${{ inputs.dry_run }}'
},
})
Expand Down

0 comments on commit 89a8602

Please sign in to comment.