mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-10-07 11:23:36 +00:00
Add PR number to environment for debugging workflow
This commit is contained in:
parent
da2d825625
commit
debdf2d17e
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -25,9 +25,17 @@ jobs:
|
||||
&& github.event.workflow_run.head_branch
|
||||
|| format('{0}/{1}', github.event.workflow_run.head_repository.full_name, github.event.workflow_run.head_branch)
|
||||
}}
|
||||
PR_NUMBER: |
|
||||
${{
|
||||
github.event.workflow_run.event == 'pull_request'
|
||||
&& github.event.workflow_run.pull_requests[0] != null
|
||||
&& github.event.workflow_run.pull_requests[0].number
|
||||
|| ''
|
||||
}}
|
||||
outputs:
|
||||
url: ${{ steps.cf.outputs.url }}
|
||||
branch: ${{ env.TARGET_BRANCH }}
|
||||
pr_number: ${{ env.PR_NUMBER }}
|
||||
|
||||
steps:
|
||||
- name: Download workflow artifact
|
||||
@ -67,11 +75,11 @@ jobs:
|
||||
name: Create comment status
|
||||
if: |
|
||||
always() &&
|
||||
github.event.workflow_run.event == 'pull_request' &&
|
||||
github.event.workflow_run.pull_requests[0].number != ''
|
||||
needs.publish.outputs.pr_number != ''
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- compose-comment
|
||||
- publish
|
||||
|
||||
steps:
|
||||
- name: Update job summary in PR comment
|
||||
@ -79,6 +87,6 @@ jobs:
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
||||
message: ${{ needs.compose-comment.outputs.msg }}
|
||||
pr_number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||
pr_number: ${{ needs.publish.outputs.pr_number }}
|
||||
comment_tag: ${{ needs.compose-comment.outputs.marker }}
|
||||
mode: recreate
|
||||
|
Loading…
Reference in New Issue
Block a user