mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
3c8ce37299
Pin action to git hash, https://blog.rafaelgss.dev/why-you-should-pin-actions-by-commit-hash Restrict permissions for the GITHUB_TOKEN, https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs Signed-off-by: probonopd <probonopd@users.noreply.github.com>
29 lines
819 B
YAML
29 lines
819 B
YAML
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
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
actions: read
|
|
|
|
steps:
|
|
- name: Add artifact links to PR and issues
|
|
if: github.event.workflow_run.event == 'pull_request'
|
|
uses: tonyhallett/artifacts-url-comments@0965ff1a7ae03c5c1644d3c30f956effea4e05ef # v1.1.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
prefix: "**Artifacts:**"
|
|
suffix: "_**WARNING:** Use at your own risk._"
|
|
format: name
|
|
addTo: pull
|
|
errorNoArtifacts: false
|