Skip to content

Commit

Permalink
Merge pull request #1186 from ArielSAdamsNASA:fix-1183-local-unit-tes…
Browse files Browse the repository at this point in the history
…t-duplicate-check

Fix #1183, Add Duplicate Check to Local Unit Test
  • Loading branch information
astrogeco committed Nov 17, 2021
2 parents 379f19f + 9d1ba83 commit 136faa9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/local_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ on:
pull_request:

jobs:
#Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action.
check-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"]'

Local-Unit-Test:
needs: check-for-duplicates
if: ${{ needs.check-for-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-18.04
timeout-minutes: 15

Expand Down

0 comments on commit 136faa9

Please sign in to comment.