Skip to content

Commit

Permalink
chore: simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 8, 2024
1 parent 88b6bec commit cdffd53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cdffd53

Please sign in to comment.