mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix PR publish in GH actions
This commit is contained in:
parent
e0f723a13a
commit
a318b1d395
2 changed files with 26 additions and 0 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -39,3 +39,27 @@ jobs:
|
|||
name: jellyfin-web__prod
|
||||
path: |
|
||||
dist
|
||||
|
||||
pr_context:
|
||||
name: Save PR context as artifact
|
||||
if: ${{ always() && !cancelled() && github.event_name == 'pull_request' }}
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- run-build-prod
|
||||
|
||||
steps:
|
||||
- name: Save PR context
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
PR_SHA: ${{ github.sha }}
|
||||
run: |
|
||||
echo $PR_NUMBER > PR_number
|
||||
echo $PR_SHA > PR_sha
|
||||
|
||||
- name: Upload PR number as artifact
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: PR_context
|
||||
path: |
|
||||
PR_number
|
||||
PR_sha
|
||||
|
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -1,3 +1,5 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue