33 lines (28 loc) · 1.15 KB
/
pullrequest.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
name: Pull Request Update
concurrency:
group: pullrequest-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
branches: [ 'main' ]
types: [ 'labeled', 'opened', 'reopened', 'synchronize' ]
# To test workflow updates you need to work in a branch directly on viamrobotics/rdk
# and tag your working branch instead of @main in any viamrobotics/rdk "uses" below.
# Don't forget to tag back to @main before merge.
jobs:
test:
uses: viamrobotics/rdk/.github/workflows/test.yml@support-credentials
secrets:
REPO_READ_TOKEN: ${{ secrets.REPO_READ_TOKEN }}
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
ARTIFACT_READ_ONLY_GCP_CREDENTIALS: ${{ secrets.ARTIFACT_READ_ONLY_GCP_CREDENTIALS }}
# This lets people add an "appimage" tag to have appimages built for the PR
appimage:
needs: test
if: contains(github.event.pull_request.labels.*.name, 'appimage')
uses: viamrobotics/rdk/.github/workflows/appimage.yml@main
secrets:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
REPO_READ_TOKEN: ${{ secrets.REPO_READ_TOKEN }}
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}