mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix publish comment action on fork PRs
This commit is contained in:
parent
3ee1714a6b
commit
f7704cf8a6
1 changed files with 26 additions and 2 deletions
28
.github/workflows/automation.yml
vendored
28
.github/workflows/automation.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: 'Automation'
|
name: Automation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -9,8 +9,32 @@ on:
|
||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
compose-comment:
|
||||||
|
name: Compose PR comment
|
||||||
|
if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' }}
|
||||||
|
uses: ./.github/workflows/job-messages.yml
|
||||||
|
with:
|
||||||
|
commit: ${{ github.event.pull_request.head.sha }}
|
||||||
|
commenting_workflow_run_id: ${{ github.run_id }}
|
||||||
|
in_progress: true
|
||||||
|
|
||||||
|
push-comment:
|
||||||
|
name: Push comment to PR
|
||||||
|
if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' && needs.compose-comment.result == 'success' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- compose-comment
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Create comment
|
||||||
|
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
||||||
|
message: ${{ needs.compose-comment.outputs.msg }}
|
||||||
|
comment_tag: ${{ needs.compose-comment.outputs.marker }}
|
||||||
|
|
||||||
triage:
|
triage:
|
||||||
name: 'Merge conflict labeling'
|
name: Merge conflict labeling
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.repository == 'jellyfin/jellyfin-web' }}
|
if: ${{ github.repository == 'jellyfin/jellyfin-web' }}
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue