diff --git a/.github/workflows/temp_ci_test.yml b/.github/workflows/temp_ci_test.yml index b6a4e415..28103c7e 100644 --- a/.github/workflows/temp_ci_test.yml +++ b/.github/workflows/temp_ci_test.yml @@ -19,21 +19,6 @@ jobs: with: fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. - # - name: sanity check 1 - # id: changed-files - # run: echo "MY_VARIABLE=sus" >> $GITHUB_ENV - - # - name: sanity check 2 - # id: changed-files2 - # run: | - # echo $MY_VARIABLE - # echo "MY_VARIABLE=$MY_VARIABLE SUS" >> $GITHUB_ENV - - # - name: sanity check 3 - # id: changed-files3 - # run: - # echo $MY_VARIABLE - - name: Find changed files inside action folder id: changed-files-action uses: tj-actions/changed-files@v42 @@ -45,6 +30,30 @@ jobs: uses: tj-actions/changed-files@v42 with: files: src/interfacing/** + + - name: Get changed files inside perception folder + id: changed-files-perception + uses: tj-actions/changed-files@v42 + with: + files: src/perception/** + + - name: Get changed files inside samples folder + id: changed-files-samples + uses: tj-actions/changed-files@v42 + with: + files: src/samples/** + + - name: Get changed files inside simulation folder + id: changed-files-simulation + uses: tj-actions/changed-files@v42 + with: + files: src/simulation/** + + - name: Get changed files inside world_modeling folder + id: changed-files-world_modeling + uses: tj-actions/changed-files@v42 + with: + files: src/world_modeling/** - name: Update CHANGED_MODULES for action if: steps.changed-files-action.outputs.any_changed == 'true' @@ -58,32 +67,30 @@ jobs: echo "Detected interfacing changes" echo "CHANGED_MODULES=$CHANGED_MODULES interfacing" >> $GITHUB_ENV - - name: List all changed files - env: - ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} + - name: Update CHANGED_MODULES for perception + if: steps.changed-files-perception.outputs.any_changed == 'true' run: | - for file in ${ALL_CHANGED_FILES}; do - echo "$file was changed!" - done - echo ======================= - echo "CHANGED_MODULES: $CHANGED_MODULES" - - # setup-environment: - # name: Setup environment - # runs-on: ubuntu-latest - - # outputs: - # registry: ${{ steps.docker-environment.outputs.registry }} - # repository: ${{ steps.docker-environment.outputs.repository }} + echo "Detected perception changes" + echo "CHANGED_MODULES=$CHANGED_MODULES perception" >> $GITHUB_ENV + + - name: Update CHANGED_MODULES for samples + if: steps.changed-files-samples.outputs.any_changed == 'true' + run: | + echo "Detected samples changes" + echo "CHANGED_MODULES=$CHANGED_MODULES samples" >> $GITHUB_ENV - # steps: - # - name: Checkout Repository - # uses: actions/checkout@v3 + - name: Update CHANGED_MODULES for simulations + if: steps.changed-files-simulations.outputs.any_changed == 'true' + run: | + echo "Detected simulations changes" + echo "CHANGED_MODULES=$CHANGED_MODULES simulations" >> $GITHUB_ENV - # - name: Setup Watod Environment - # run: ./watod_scripts/watod-setup-env.sh - # shell: bash + - name: Update CHANGED_MODULES for world_modeling + if: steps.changed-files-world_modeling.outputs.any_changed == 'true' + run: | + echo "Detected world_modeling changes" + echo "CHANGED_MODULES=$CHANGED_MODULES world_modeling" >> $GITHUB_ENV - # - name: Generate Docker Environment - # id: docker-environment - # uses: "./.github/templates/docker_context" \ No newline at end of file + - name: List all changed files + run: | + echo "CHANGED_MODULES: $CHANGED_MODULES" \ No newline at end of file diff --git a/src/action/test.txt b/src/action/test.txt index bf0d87ab..e440e5c8 100644 --- a/src/action/test.txt +++ b/src/action/test.txt @@ -1 +1 @@ -4 \ No newline at end of file +3 \ No newline at end of file diff --git a/src/interfacing/test2.txt b/src/interfacing/test2.txt index 56a6051c..e440e5c8 100644 --- a/src/interfacing/test2.txt +++ b/src/interfacing/test2.txt @@ -1 +1 @@ -1 \ No newline at end of file +3 \ No newline at end of file