Skip to content

Commit

Permalink
Changed logic that triggers workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiswift committed Nov 12, 2024
1 parent da078be commit ba082ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/backend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@ jobs:
needs: compare-changes
steps:
- run: echo "BackendDisable ${{ needs.compare-changes.outputs.backendDisable }}"
- run: printf "backendDisable ${{ needs.Compare-changes.outputs.backendDisable == 'true' }}\n"
- run: printf "should run frontend CI ${{ needs.Compare-changes.outputs.backendDisable == 'false' }}\n"

skip-backend-test:
needs:
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == 'true' }}
runs-on: ubuntu-latest
steps:
- run: echo "Skipping backend tests"
backend-tests:
needs:
- compare-changes
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/frontend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ jobs:
- run: echo "FrontendDisable ${{ needs.compare-changes.outputs.frontendDisable }}"
- run: printf "should run frontend CI ${{ needs.compare-changes.outputs.frontendDisable == 'false' }}\n"

skip-frontend-test:
needs:
- compare-changes
if: ${{ needs.compare-changes.outputs.frontendDisable == 'true' }}
runs-on: ubuntu-latest
steps:
- run: echo "Skipping frontend tests ${{ needs.compare-changes.outputs.frontendDisable }}"
frontend-test:
needs:
- compare-changes
Expand Down

0 comments on commit ba082ab

Please sign in to comment.