Skip to content

Commit

Permalink
ci: Do not produce build artifacts when run in a fork (#30294)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ilya-bobyr authored Feb 14, 2023
1 parent c617c34 commit 6fb4716
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ jobs:
build_and_deploy:
needs:
- 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
name: build & deploy docs
runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-artifacts-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:

jobs:
release-artifacts:
if: github.repository == 'solana-labs/solana'
uses: ./.github/workflows/release-artifacts.yml
with:
commit: ${{ github.sha }}
Expand Down

0 comments on commit 6fb4716

Please sign in to comment.