Merge pull request #5896 from thornbill/fix-cf-pages

Fix Cloudflare Pages CI issues
This commit is contained in:
Bill Thornton
2024-08-08 16:18:35 -04:00
committed by GitHub

View File

@@ -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 }}