-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (101 loc) · 3.2 KB
/
pull_request.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Candace Savonen March 2024
name: Pull Request
on:
pull_request:
branches: [ main, staging ]
jobs:
dockerfiles-changed:
name: Detect changed Dockerfiles
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get specific changed files
id: base_ottr
uses: tj-actions/[email protected]
with:
files: base_ottr/*
- name: Get specific changed files
id: ottrpal
uses: tj-actions/[email protected]
with:
files: ottrpal/*
- name: Get specific changed files
id: bioconductor
uses: tj-actions/[email protected]
with:
files: bioconductor/*
- name: Get specific changed files
id: python
uses: tj-actions/[email protected]
with:
files: ottr_python/*
- name: Get specific changed files
id: quarto
uses: tj-actions/[email protected]
with:
files: ottr_quarto/*
- run: |
echo ${{steps.base_ottr.outputs.any_changed}}
echo ${{steps.ottrpal.outputs.any_changed}}
echo ${{steps.bioconductor.outputs.any_changed}}
echo ${{steps.python.outputs.any_changed}}
echo ${{steps.quarto.outputs.any_changed}}
outputs:
base_ottr_changed: ${{steps.base_ottr.outputs.any_changed}}
ottrpal_changed: ${{steps.ottrpal.outputs.any_changed}}
bioconductor_changed: ${{steps.bioconductor.outputs.any_changed}}
python_changed: ${{steps.python.outputs.any_changed}}
quarto_changed: ${{steps.quarto.outputs.any_changed}}
build-base:
name: Build base ottr image
needs: dockerfiles-changed
if: ${{needs.dockerfiles-changed.outputs.base_ottr_changed == 'true'}}
uses: ./.github/workflows/docker-test.yml
with:
directory: base_ottr
tag: jhudsl/base_ottr
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
build-ottrpal:
name: Build ottrpal image
needs: dockerfiles-changed
if: ${{needs.dockerfiles-changed.outputs.ottrpal_changed == 'true'}}
uses: ./.github/workflows/docker-test.yml
with:
directory: ottrpal
tag: jhudsl/ottrpal
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
build-bioconductor:
name: Build bioconductor image
needs: dockerfiles-changed
if: ${{needs.dockerfiles-changed.outputs.bioconductor_changed == 'true'}}
uses: ./.github/workflows/docker-test.yml
with:
directory: bioconductor
tag: jhudsl/ottr_bioconductor
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
build-python:
name: Build python image
needs: dockerfiles-changed
if: ${{needs.dockerfiles-changed.outputs.python_changed == 'true'}}
uses: ./.github/workflows/docker-test.yml
with:
directory: ottr_python
tag: jhudsl/ottr_python
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
build-quarto:
name: Build quarto ottr image
needs: dockerfiles-changed
if: ${{needs.dockerfiles-changed.outputs.quarto_changed == 'true'}}
uses: ./.github/workflows/docker-test.yml
with:
directory: ottr_quarto
tag: jhudsl/ottr_quarto
secrets:
GH_PAT: ${{ secrets.GH_PAT }}