Add PR Artifact Links As Comment #1384
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add PR Artifact Links As Comment | |
on: | |
workflow_run: | |
workflows: [CI Pipeline] | |
types: [completed] | |
jobs: | |
artifacts-url-comments: | |
name: Add artifact links to pull request | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 14 | |
- uses: tonyhallett/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
prefix: "Build for this pull request:" | |
format: "[MobiFlightConnector.zip]({url})" | |
addTo: pull |