Skip to content

Commit

Permalink
Fix nasa#264, CodeQL Dependent on Successful Build
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker committed Jul 16, 2021
1 parent fb2968d commit 1ed1793
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: "CodeQL Analysis"

# Only trigger, when the build workflow succeeded
on:
push:
pull_request:
branches:
- main
workflow_run:
workflows: ["Build, Test, and Run [OMIT_DEPRECATED=true]"]
types:
- completed

env:
SIMULATION: native
Expand All @@ -19,6 +20,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 1ed1793

Please sign in to comment.