ci: Do not produce build artifacts when run in a fork (#30294)
If someone forks the `solana` repo, they should not have access to Slack or AWS storage locations that hold build artifacts. Meaning, actions that interact with that infrastructure will always fail. It makes sense to disable these actions in forks.
This commit is contained in:
parent
c617c345d9
commit
6fb4716e48
|
@ -68,7 +68,9 @@ jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
needs:
|
needs:
|
||||||
- check
|
- check
|
||||||
if: ${{ needs.check.outputs.continue == 1 }}
|
if: >
|
||||||
|
github.repository == 'solana-labs/solana' &&
|
||||||
|
needs.check.outputs.continue == 1
|
||||||
# the name is used by .mergify.yml as well
|
# the name is used by .mergify.yml as well
|
||||||
name: build & deploy docs
|
name: build & deploy docs
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
|
@ -14,6 +14,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-artifacts:
|
release-artifacts:
|
||||||
|
if: github.repository == 'solana-labs/solana'
|
||||||
uses: ./.github/workflows/release-artifacts.yml
|
uses: ./.github/workflows/release-artifacts.yml
|
||||||
with:
|
with:
|
||||||
commit: ${{ github.sha }}
|
commit: ${{ github.sha }}
|
||||||
|
|
Loading…
Reference in New Issue