Skip to content

Commit

Permalink
Merge pull request #1039 from ArielSAdamsNASA/fix-1035-rename-cfe-dup…
Browse files Browse the repository at this point in the history
…licate

Fix #1035, Rename CodeQL cFE Build and add Duplicate Job
  • Loading branch information
astrogeco authored Jun 2, 2021
2 parents 36a2923 + d4af445 commit d57e3d6
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL Analysis"
name: "CodeQL cFE Build Analysis"

on:
push:
Expand All @@ -11,8 +11,23 @@ env:
BUILDTYPE: release

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"]'

CodeQL-Build:
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 d57e3d6

Please sign in to comment.