Skip to content

Commit

Permalink
Fix nasa#286, Documentation Duplicate Check
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker committed Jul 6, 2021
1 parent fb2968d commit 3fd796b
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,7 @@ on:
env:
SIMULATION: native

jobs:
#Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action.
checks-for-duplicates:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

build-docs:
#Continue if checks-for-duplicates found no duplicates. Always runs for pull-requests.
needs: checks-for-duplicates
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
name: cFE Documentation
runs-on: ubuntu-18.04

Expand Down Expand Up @@ -72,8 +54,6 @@ jobs:
build-usersguide:
# Name the Job
needs: checks-for-duplicates
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
name: Users Guide
# Set the type of machine to run on
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -156,8 +136,6 @@ jobs:

build-osalguide:
# Name the Job
needs: checks-for-duplicates
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
name: Osal Guide
# Set the type of machine to run on
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -222,7 +200,7 @@ jobs:
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
run: |
mkdir deploy
cd ./build/doc/osalguide/latex
cd ./build/doc/osalguide/apiguide/latex
make > build.txt
mv refman.pdf $GITHUB_WORKSPACE/deploy/OSAL_Users_Guide.pdf
# Could add pandoc and convert to github markdown
Expand Down

0 comments on commit 3fd796b

Please sign in to comment.