Skip to content

Commit

Permalink
target IC, re-add duplicate check to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
astrogeco committed Apr 19, 2022
1 parent fe6a6f5 commit 52e2f41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/build-deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,24 @@ on:
default: true

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-doc:
needs: checks-for-duplicates
if: ${{ needs.checks-for-duplicates.outputs.should_skip != 'true' }}
name: Build Documentation
runs-on: ubuntu-18.04

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
build-cfs-documentation:
needs: checkout-and-cache
name: Build cFS documents
uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main
uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@integration-candidate
with:
target: "[\"cfe-usersguide\", \"osal-apiguide\", \"mission-doc\"]"
cache-key: cfs-doc-${{ github.run_number }}
Expand Down

0 comments on commit 52e2f41

Please sign in to comment.