Skip to content

Commit

Permalink
CICD: isolated workflow for detecting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Apr 13, 2024
1 parent d436fa0 commit bf3a408
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 37 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR1

on:
workflow_dispatch:
pull_request:

jobs:
evaluate:
name: Evaluate Changes
uses: ./.github/workflows/task-pr-changes.yaml

sp4-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP4 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp4-check.yaml
permissions:
security-events: write

sp5-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP5 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp5-check.yaml
permissions:
security-events: write

autoformat-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP5 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-autoformat-check.yaml
permissions:
security-events: write
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: PR
name: PR Changes

on:
workflow_dispatch:
pull_request:
workflow_call:

jobs:
evaluate:
Expand Down Expand Up @@ -37,38 +37,3 @@ jobs:
outputs:
MOD_SP4: ${{ steps.evaluate.outputs.MOD_SP4 }}
MOD_SP5: ${{ steps.evaluate.outputs.MOD_SP5 }}

sp4-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP4 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp4-check.yaml
permissions:
security-events: write

sp5-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP5 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp5-check.yaml
permissions:
security-events: write

sp4-full:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP4 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp4-full-build.yaml
permissions:
security-events: write

sp5-full:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP5 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-sp5-full-build.yaml
permissions:
security-events: write

autoformat-check:
needs: evaluate
if: needs.evaluate.outputs.MOD_SP5 == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/task-autoformat-check.yaml
permissions:
security-events: write

0 comments on commit bf3a408

Please sign in to comment.