Skip to content

Commit

Permalink
Update change detection outputs and conditions for build and test steps
Browse files Browse the repository at this point in the history
- Updated the output name in the workflow file related to change detection.
- Adjusted conditions in the build and test steps to use the updated output from change detection.
  • Loading branch information
winromulus committed Jun 15, 2024
1 parent e15f803 commit 2aac993
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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:
src_changed: ${{ steps.src_changed.outputs.src }}
change_detection_src: ${{ steps.change_detection.outputs.src }}
steps:

- name: checkout
Expand All @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0

- name: tools - detect changes
id: src_changed
id: change_detection
uses: dorny/paths-filter@v3
with:
base: ${{ github.ref }}
Expand All @@ -37,22 +37,22 @@ jobs:
- 'playground/**'
- name: build
if: steps.src_changed.outputs.changes == 'true'
if: ${{ steps.change_detection.outputs.changes == 'true' }}
uses: ./.github/actions/build
with:
configuration: Debug
useVersioning: false

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

cd:
name: CD
runs-on: ubuntu-latest
needs: ci
if: >
needs.ci.outputs.src_changed == '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 2aac993

Please sign in to comment.