From cdffd5348a6a4871ee5ed9d8d1a6185a17c4c7ec Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 8 Apr 2024 18:35:06 +0200 Subject: [PATCH] chore: simplify check --- .github/workflows/smoketest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: