-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.45 KB
/
top-pr.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
42
43
44
45
46
47
48
49
name: Top-level PR workflow
on:
pull_request:
branches: ['main']
jobs:
pyflakes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: pyflakes
uses: jrbaxter0/action-pyflakes@patch-1
with:
github_token: ${{ secrets.github_token }}
changes:
name: Check for changes to files in docker directory
runs-on: ubuntu-latest
outputs:
docker: ${{ steps.changes.outputs.docker }}
steps:
- id: changes
uses: dorny/paths-filter@v2
with:
filters: |
docker: ['docker/**']
docker:
name: Rebuild Docker image and push to PR tag
needs: changes
if: needs.changes.outputs.docker == 'true'
uses: purdue-arc/rocket_league/.github/workflows/docker-build-push.yml@main
with:
tag: ${{ github.event.number }}
secrets:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
catkin_tag:
name: Catkin build and test using PR tagged Docker image
needs: [changes, docker]
if: needs.changes.outputs.docker == 'true'
uses: purdue-arc/rocket_league/.github/workflows/catkin-build-test.yml@main
with:
tag: ${{ github.event.number }}
catkin_latest:
name: Catkin build and test using latest Docker image
needs: changes
if: needs.changes.outputs.docker == 'false'
uses: purdue-arc/rocket_league/.github/workflows/catkin-build-test.yml@main