From d5ae82530f5d5b3bfc38febf17f4f9955b118841 Mon Sep 17 00:00:00 2001 From: Faeka Ansari Date: Wed, 4 Dec 2024 01:26:57 +0530 Subject: [PATCH] update conditional for running the job Signed-off-by: Faeka Ansari --- .github/workflows/release.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3c87b3d56..ec6e44e84 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -335,11 +335,7 @@ jobs: provenance-name: kargo-cli.intoto.jsonl update-homebrew-formula: - if: > - github.event_name == 'release' && - startsWith(github.ref, 'refs/tags/v') && - !contains(github.ref, '-') && - github.ref == format('refs/tags/v{0}', steps.latest_release.outputs.version) + if: github.event_name == 'release' && github.event.action == 'released' # Runs only for stable releases runs-on: ubuntu-latest needs: [ publish-image, publish-cli ] steps: