diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 7baaba7a1..27481a284 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -104,8 +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 }} + # If it's a PR, only run if the PR head is not a fork + if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} run: | rclone --fast-list -v --transfers=128 --checkers=256 --progress copy "./audio" "Cloudflare R2:/rail-announcements-audio" env: