mirror of
https://github.com/helm/helm.git
synced 2026-08-09 01:21:20 +00:00
Merge pull request #31473 from TerryHowe/fix-only-run-release-on-helm-helm
fix: do not run release workflow on forks
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -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
|
||||
@@ -81,7 +81,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
|
||||
|
||||
Reference in New Issue
Block a user