Skip to content

Commit

Permalink
Added rest of modules to check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Do committed Feb 7, 2024
1 parent 6ae470f commit b900bf1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 42 deletions.
87 changes: 47 additions & 40 deletions .github/workflows/temp_ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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"
- name: List all changed files
run: |
echo "CHANGED_MODULES: $CHANGED_MODULES"
2 changes: 1 addition & 1 deletion src/action/test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4
3
2 changes: 1 addition & 1 deletion src/interfacing/test2.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
3

0 comments on commit b900bf1

Please sign in to comment.