From d4af445e7678103c7dc0731547e713536e48c2cc Mon Sep 17 00:00:00 2001 From: ArielSAdamsNASA Date: Thu, 20 May 2021 16:43:36 -0500 Subject: [PATCH] Fix #1035, Rename CodeQL cFE and add Duplicate Job --- .../{codeql-build.yml => codeql-cfe-build.yml} | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) rename .github/workflows/{codeql-build.yml => codeql-cfe-build.yml} (61%) diff --git a/.github/workflows/codeql-build.yml b/.github/workflows/codeql-cfe-build.yml similarity index 61% rename from .github/workflows/codeql-build.yml rename to .github/workflows/codeql-cfe-build.yml index 7d458fbb5..59265d882 100644 --- a/.github/workflows/codeql-build.yml +++ b/.github/workflows/codeql-cfe-build.yml @@ -1,4 +1,4 @@ -name: "CodeQL Analysis" +name: "CodeQL cFE Build Analysis" on: push: @@ -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