Skip to content

Commit a4787c2

Browse files
authored
Merge pull request #248 from nasa/integration-candidate
cFS bundle Integration candidate: 2021-04-20
2 parents 397c6b1 + 8872aec commit a4787c2

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/build-documentation.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
7373
build-usersguide:
7474
# Name the Job
75+
needs: checks-for-duplicates
76+
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
7577
name: Users Guide
7678
# Set the type of machine to run on
7779
runs-on: ubuntu-18.04
@@ -127,12 +129,12 @@ jobs:
127129
fi
128130
129131
- name: PDF generation installs
130-
if: ${{ github.event_name == 'push' }}
132+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
131133
run: |
132134
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
133135
134136
- name: PDF generation
135-
if: ${{ github.event_name == 'push' }}
137+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
136138
run: |
137139
set -x
138140
mkdir deploy
@@ -143,7 +145,7 @@ jobs:
143145
# pandoc CFE_Users_Guide.pdf -t gfm
144146
145147
- name: Deploy
146-
if: ${{ github.event_name == 'push' }}
148+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
147149
uses: JamesIves/github-pages-deploy-action@3.7.1
148150
with:
149151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -154,6 +156,8 @@ jobs:
154156

155157
build-osalguide:
156158
# Name the Job
159+
needs: checks-for-duplicates
160+
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
157161
name: Osal Guide
158162
# Set the type of machine to run on
159163
runs-on: ubuntu-18.04
@@ -210,12 +214,12 @@ jobs:
210214
fi
211215
212216
- name: PDF generation installs
213-
if: ${{ github.event_name == 'push' }}
217+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
214218
run: |
215219
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
216220
217221
- name: PDF generation
218-
if: ${{ github.event_name == 'push' }}
222+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
219223
run: |
220224
mkdir deploy
221225
cd ./build/doc/osalguide/latex
@@ -225,7 +229,7 @@ jobs:
225229
# pandoc CFE_Users_Guide.pdf -t gfm
226230
227231
- name: Deploy
228-
if: ${{ github.event_name == 'push' }}
232+
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
229233
uses: JamesIves/github-pages-deploy-action@3.7.1
230234
with:
231235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)