diff --git a/.github/workflows/artifact-links.yml b/.github/workflows/artifact-links.yml index a0e2ca64a1..e72066b2e0 100644 --- a/.github/workflows/artifact-links.yml +++ b/.github/workflows/artifact-links.yml @@ -9,12 +9,22 @@ jobs: name: Add artifact links to PR and issues runs-on: ubuntu-22.04 steps: + - name: Get information about the original PR + uses: potiuk/get-workflow-origin@v1_5 + id: get-info + with: + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} - name: Add artifact links to PR and issues uses: tonyhallett/artifacts-url-comments@v1.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: prefix: "**Do you want to test this code? Here you have an automated build:**" - suffix: "_**WARNING:** It may be unstable. Use only for testing! See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions for unified targets!_" + suffix: | + - See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions about installing this unified targets! + - An easier way to test this, using the Configurator cloud build, is simply put `#${{ steps.get-info.outputs.pullRequestNumber }}` (this pull request number) in the `Select commit` field of the Configurator firmware flasher tab (you need to `Enable expert mode`, `Show release candidates` and `Development`). + + _**WARNING:** It may be unstable. Use only for testing!_ format: name addTo: pull diff --git a/.github/workflows/hide-artifact-links.yml b/.github/workflows/hide-artifact-links.yml index 678e910e13..c65c6844a4 100644 --- a/.github/workflows/hide-artifact-links.yml +++ b/.github/workflows/hide-artifact-links.yml @@ -14,4 +14,3 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} starts-with: "**Do you want to test this code? Here you have an automated build:**" - ends-with: "_**WARNING:** It may be unstable. Use only for testing! See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions for unified targets!_"