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 1f8904d commit 6592464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/backend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
steps:
- run: echo "BackendDisable ${{ needs.compare-changes.outputs.backendDisable }}"
- run: printf "backendDisable ${{ needs.Compare-changes.outputs.backendDisable == 'true' }}\n"
printf "playwrightDisable ${{ needs.Compare-changes.outputs.playwrightDisable == 'true' }}"

skip-backend-test:
needs:
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == true }}
if: ${{ needs.compare-changes.outputs.backendDisable == 'true' }}
runs-on: ubuntu-latest
steps:
- run: echo "Skipping frontend tests"
- run: echo "Skipping backend tests"
backend-tests:
needs:
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == false }}
if: ${{ needs.compare-changes.outputs.backendDisable == 'false' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/frontend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ jobs:
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 }}"
echo ${{ !needs.compare-changes.outputs.frontendDisable }}
echo ${{ needs.compare-changes.outputs.frontendDisable == false }}
echo ${{ needs.compare-changes.outputs.frontendDisable == 'false' }}
echo "Skipping backend tests ${{ needs.compare-changes.outputs.backendDisable }}"
echo ${{ needs.compare-changes.outputs.backendDisable == true }}
echo ${{ needs.compare-changes.outputs.backendDisable == 'true' }}
frontend-test:
needs:
- compare-changes
Expand Down

0 comments on commit 6592464

Please sign in to comment.