Skip to content

Commit

Permalink
link/hide PR artifacts (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Feb 26, 2024
1 parent 9f0358c commit 1ed71fb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/hide-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Hide artifacts links comments

on:
pull_request_target:
types: [synchronize, reopened]

jobs:
hide-artifacts-link-comments:
name: Hide artifacts links
runs-on: ubuntu-22.04
steps:
- name: Hide artifacts links from comments.
uses: int128/hide-comment-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
contains: "Compiled HEX from this Pull-Request. WARNING: No warranty or guarantee of any kind. Test/Fly at your own risk!"
20 changes: 20 additions & 0 deletions .github/workflows/link-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Link PR Artifacts

on:
workflow_run:
workflows: ["Build EmuFlight"]
types: ["completed"]

jobs:
artifacts-url-comments:
name: Add artifact links
runs-on: ubuntu-22.04
steps:
- name: Add artifact links
uses: tonyhallett/artifacts-url-comments@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prefix: "Compiled HEX from this Pull-Request. WARNING: No warranty or guarantee of any kind. Test/Fly at your own risk!"
format: name
addTo: pull

0 comments on commit 1ed71fb

Please sign in to comment.