Skip to content

Commit

Permalink
HotFix #2086, Resolve build-documentation.yml error
Browse files Browse the repository at this point in the history
- Rename jobs for clarity
- Change skip duplicates on push
- Point to reusable workflow in cFS bundle @ main
  • Loading branch information
astrogeco committed Apr 19, 2022
1 parent 145e15b commit 81416f8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
with:
concurrent_skipping: 'same_content'
skip_after_successful_duplicate: 'true'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

checkout-and-cache:
name: Custom checkout and cache for cFS documents
needs: checks-for-duplicates
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -47,23 +47,21 @@ jobs:

build-cfe-usersguide:
needs: checkout-and-cache
name: Build and deploy cFS documents
name: Build and deploy cFE Docs
uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main
with:
target: "[\"cfe-usersguide\"]"
cache-key: cfs-doc-${{ github.run_number }}
checkout: false
buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
deploy: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}

build-mission-doc:
needs: checkout-and-cache
name: Build and deploy cFS documents
name: Build Mission Doc
#uses: nasa/cFS/.github/workflows/build-deploy-doc.yml
uses: skliper/cFS/.github/workflows/build-deploy-doc.yml@fix447-deploy_mission_doc
uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main
with:
target: "[\"mission-doc\"]"
cache-key: cfs-doc-${{ github.run_number }}
checkout: false
deploy: false
buildpdf: false # No need for mission pdf within cFE, done at bundle level

0 comments on commit 81416f8

Please sign in to comment.