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 2f4b0e9 commit 91738d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/backend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ on:
- "master"

jobs:
Compare-changes:
compare-changes:
uses: ./.github/workflows/compare-changes.yml

print-compare-changes-output:
runs-on: ubuntu-latest
needs: Compare-changes
needs: compare-changes
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 }}
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == true }}
runs-on: ubuntu-latest
steps:
- run: echo "Skipping frontend tests"
backend-tests:
needs:
- Compare-changes
if: ${{ needs.Compare-changes.outputs.backendDisable == false }}
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/frontend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:

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

0 comments on commit 91738d1

Please sign in to comment.