From 2e83a6ef1a5cd0876a756dd0027dd1a100bb03f4 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Mon, 22 Apr 2024 10:26:37 -0700 Subject: [PATCH] update gh release script --- .github/workflows/gh-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml index e64c1cf7..66881bb0 100644 --- a/.github/workflows/gh-release.yml +++ b/.github/workflows/gh-release.yml @@ -17,7 +17,7 @@ name: Create Github release on: push: tags: - - '@google/generative-ai@*' + - '*' permissions: contents: write @@ -25,6 +25,7 @@ permissions: jobs: release: name: Release pushed tag + if: ${{ contains(github.ref_name, 'google/generative-ai') }} runs-on: ubuntu-latest steps: - name: Create Github release @@ -35,5 +36,5 @@ jobs: gh release create "$tag" \ --repo="$GITHUB_REPOSITORY" \ --title="$tag" \ - --generate-notes + --generate-notes \ --verify-tag