Skip to content

Commit

Permalink
Update change detection output handling and build/test conditions
Browse files Browse the repository at this point in the history
- Refactored the output handling for change detection
- Modified build and test conditions based on changes detected
  • Loading branch information
winromulus committed Jun 15, 2024
1 parent 2aac993 commit 41a9fe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
permissions:
pull-requests: read
outputs:
change_detection_src: ${{ steps.change_detection.outputs.src }}
change_detection: ${{ steps.change_detection.outputs }}
steps:

- name: checkout
Expand All @@ -37,22 +37,22 @@ jobs:
- 'playground/**'
- name: build
if: ${{ steps.change_detection.outputs.changes == 'true' }}
if: ${{ steps.change_detection.outputs.changes != '[]' }}
uses: ./.github/actions/build
with:
configuration: Debug
useVersioning: false

- name: test
if: ${{ steps.change_detection.outputs.changes == 'true' }}
if: ${{ steps.change_detection.outputs.changes != '[]' }}
uses: ./.github/actions/test

cd:
name: CD
runs-on: ubuntu-latest
needs: ci
if: >
needs.ci.outputs.change_detection_src == 'true' &&
needs.ci.outputs.change_detection.src == 'true' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
(github.ref == 'refs/heads/main' ||
Expand Down

0 comments on commit 41a9fe6

Please sign in to comment.