Skip to content

Commit

Permalink
CI: CodeQL last
Browse files Browse the repository at this point in the history
Run after at least Ubuntu has passed.
  • Loading branch information
ax3l committed Nov 30, 2023
1 parent b35493b commit 05d2bed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrency:
jobs:
stubs:
# Pushes should only run on mainline branch "development"
# TODO: We can also skip this, if the latest commit's name is "Update Stub Files"
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/pyamrex' && github.ref == 'refs/heads/development'
name: 🔄 Update Stub Files
secrets:
Expand Down Expand Up @@ -45,6 +46,16 @@ jobs:
needs: [stubs]
uses: ./.github/workflows/windows.yml

codeql:
if: github.event.pull_request.draft == false
name: 🔎 CodeQL
needs: [ubuntu]
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/codeql.yml

save_pr_number:
if: github.event_name != 'push'
runs-on: ubuntu-latest
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: 🔎 CodeQL

on:
push:
branches: [ "development" ]
pull_request:
branches: [ "development" ]
workflow_call:
schedule:
- cron: "27 3 * * 0"

Expand Down

0 comments on commit 05d2bed

Please sign in to comment.