2024-05-12 09:57:41 +00:00
|
|
|
name: Add artifact links to pull request
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["Ubuntu 16.04 / Qt 5.15-- for AppImage", "Mac", "Windows", "Android", "iOS"]
|
|
|
|
types: [completed]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
artifacts-url-comments:
|
|
|
|
name: Add artifact links to PR and issues
|
|
|
|
runs-on: ubuntu-22.04
|
2024-05-14 00:53:10 +00:00
|
|
|
|
2024-07-27 10:16:38 +00:00
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
actions: read
|
|
|
|
|
2024-05-12 09:57:41 +00:00
|
|
|
steps:
|
2024-05-14 00:53:10 +00:00
|
|
|
- name: Add artifact links to PR and issues
|
2024-05-14 01:35:12 +00:00
|
|
|
if: github.event.workflow_run.event == 'pull_request'
|
2024-07-27 10:16:38 +00:00
|
|
|
uses: tonyhallett/artifacts-url-comments@0965ff1a7ae03c5c1644d3c30f956effea4e05ef # v1.1.0
|
2024-05-14 00:53:10 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
prefix: "**Artifacts:**"
|
|
|
|
suffix: "_**WARNING:** Use at your own risk._"
|
|
|
|
format: name
|
|
|
|
addTo: pull
|
2024-05-15 00:37:50 +00:00
|
|
|
errorNoArtifacts: false
|