diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d8bd0eaac3..c1f686265c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy dist --project-name=jellyfin-web --branch=${{ - github.event.pull_request.head.repo.full_name == github.repository + (github.event_name != 'pull_request_target' || github.event.pull_request.head.repo.full_name == github.repository) && (github.event.pull_request.head.ref || github.ref_name) || format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.event.pull_request.head.ref) }} --commit-hash=${{ github.event.pull_request.head.sha || github.sha }}