1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Add cloud build instructions to Pull Request (#12817)

This commit is contained in:
Míguel Ángel Mulero Martínez 2023-05-20 09:52:24 +02:00 committed by GitHub
parent 7a39c8037f
commit b9f6eacf70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -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!_"