mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-18 11:06:23 +00:00
ci: add workflow to publish PR artifacts (#5491)
This commit is contained in:
25
.github/workflows/publish-artifacts.yml
vendored
Normal file
25
.github/workflows/publish-artifacts.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
name: Publish Artifacts
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["CI"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
if: >-
|
||||||
|
github.event.workflow_run.event == 'pull_request' &&
|
||||||
|
(github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure')
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Publish PR artifacts
|
||||||
|
uses: LizardByte/actions/actions/artifact_comment@f2409e3fffa358332f00b0004d181973754b64b3 # master
|
||||||
|
with:
|
||||||
|
artifact_patterns: build-*
|
||||||
Reference in New Issue
Block a user