try to override GITHUB_REF for krew publisher

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
This commit is contained in:
Matthias Bertschy
2024-11-19 14:49:49 +01:00
parent 5b9c6491de
commit bbb2aafc7e
2 changed files with 11 additions and 1 deletions

View File

@@ -107,4 +107,6 @@ jobs:
contents: write
uses: ./.github/workflows/e-post-release.yaml
needs: [publish-image]
with:
TAG: ${{ needs.retag.outputs.NEW_TAG }}
secrets: inherit

View File

@@ -1,7 +1,12 @@
name: e-post_release
permissions: read-all
on:
workflow_call: {}
workflow_call:
inputs:
TAG:
description: 'Tag name'
required: true
type: string
jobs:
post_release:
name: Post release jobs
@@ -12,6 +17,9 @@ jobs:
submodules: recursive
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.47
if: github.repository_owner == 'kubescape'
env:
GITHUB_REF: ${{ inputs.TAG }}
- name: Invoke workflow to update packaging
uses: benc-uk/workflow-dispatch@v1
if: github.repository_owner == 'kubescape'