1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix branch name passed to CF Pages for forks

This commit is contained in:
Bill Thornton 2024-08-05 17:09:13 -04:00
parent 236870e12e
commit 40b7aeddc2

View file

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