Skip to content

Commit

Permalink
fix(ci): don't copy files to R2 if PR head is not the main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 8, 2024
1 parent ff305bb commit 88b6bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
rclone_config: ${{ secrets.RCLONE_CONFIG }}

- name: Upload audio files to Cloudflare R2
# If it's a PR, only run if the PR head is from the main repo, otherwise secrets will not be defined
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: |
rclone --fast-list -v --transfers=128 --checkers=256 --progress copy "./audio" "Cloudflare R2:/rail-announcements-audio"
env:
Expand Down

0 comments on commit 88b6bec

Please sign in to comment.