fix: do not run release workflow on forks

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
pull/31473/head
Terry Howe 2 months ago
parent f352ced42b
commit d93ef03ee4
No known key found for this signature in database

@ -16,7 +16,7 @@ permissions: read-all
# job is triggered by a tag push, VERSION should be the tag ref.
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'helm/helm'
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout source code
@ -76,7 +76,7 @@ jobs:
canary-release:
runs-on: ubuntu-latest-16-cores
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && github.repository == 'helm/helm'
steps:
- name: Checkout source code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # pin@v5.0.0

Loading…
Cancel
Save