From 203a3b72c370e826b9451381accb810c3bfa4af5 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:21:50 -0600 Subject: [PATCH] link/hide PR artifacts --- .github/workflows/hide-artifacts.yml | 16 ++++++++++++++++ .github/workflows/link-artifacts.yml | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/hide-artifacts.yml create mode 100644 .github/workflows/link-artifacts.yml diff --git a/.github/workflows/hide-artifacts.yml b/.github/workflows/hide-artifacts.yml new file mode 100644 index 0000000000..99f95acd79 --- /dev/null +++ b/.github/workflows/hide-artifacts.yml @@ -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!" diff --git a/.github/workflows/link-artifacts.yml b/.github/workflows/link-artifacts.yml new file mode 100644 index 0000000000..b1df8db1cc --- /dev/null +++ b/.github/workflows/link-artifacts.yml @@ -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 \ No newline at end of file