forked from viam-modules/viam-cartographer
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.62 KB
/
pullrequest-trusted.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Pull Request Update
concurrency:
group: pullrequest-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request_target:
branches: [ 'main' ]
types: [ 'labeled' ]
# To test workflow updates you need to work in a branch directly on viamrobotics/viam-cartographer
# and tag your working branch instead of @main in any viamrobotics/viam-cartographer "uses" below.
# Don't forget to tag back to @main before merge.
jobs:
test:
if: github.event.label.name == 'safe to test' ||
contains(github.event.pull_request.labels.*.name, 'appimage') ||
contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
uses: viamrobotics/viam-cartographer/.github/workflows/test.yml@main
# This lets people add an "appimage" tag to have appimages built for the PR
appimage:
needs: [test]
if: |
always() && !cancelled() && contains(github.event.pull_request.labels.*.name, 'safe to test') &&
!contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests') &&
contains(github.event.pull_request.labels.*.name, 'appimage') && needs.test.result == 'success'
uses: viamrobotics/viam-cartographer/.github/workflows/appimage.yml@main
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
appimage-ignore-tests:
if: |
always() && !cancelled() && contains(github.event.pull_request.labels.*.name, 'safe to test') &&
contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
uses: viamrobotics/viam-cartographer/.github/workflows/appimage.yml@main
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}