diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 237159e4e0..426aea0dac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,12 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: jellyfin-web - branch: ${{ github.event.pull_request.head.ref || github.ref_name }} + branch: | + ${{ + 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) + }} directory: dist gitHubToken: ${{ secrets.GITHUB_TOKEN }}