Skip to content

Commit

Permalink
Fix #264, CodeQL Dependent on Successful Build
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker committed Jul 19, 2021
1 parent fb2968d commit 5724e49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-cfs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build, Test, and Run [OMIT_DEPRECATED=true]
name: Build, Test, and Run

# Run every time a new commit pushed or for pull requests
on:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: "CodeQL Analysis"

# Only trigger, when the build workflow succeeded
on:
push:
pull_request:
branches:
- main

workflow_run:
workflows:
- Build, Test, and Run
types:
- completed
branches:
- '**'
env:
SIMULATION: native
ENABLE_UNIT_TESTS: true
Expand All @@ -19,6 +22,7 @@ jobs:
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
Expand Down

0 comments on commit 5724e49

Please sign in to comment.