Skip to content

Commit

Permalink
ci: Fix Check ports syscfg update workflow
Browse files Browse the repository at this point in the history
Changes the way 'cd' command is used, so it takes into account that each step is run in a separate shell instance.
  • Loading branch information
wpiet committed Mar 1, 2024
1 parent a04a6d2 commit 3a5dd40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ports_syscfg_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ jobs:
run: |
cd build
./repos/apache-mynewt-nimble/porting/update_generated_files.sh
cd repos/apache-mynewt-nimble
cd ..
- name: Check ports syscfg (debug)
shell: bash
if: runner.debug == '1'
run: |
cd build/repos/apache-mynewt-nimble
git diff
cd ..
- name: Check ports syscfg
shell: bash
run: |
cd build/repos/apache-mynewt-nimble
git diff --quiet || (\
echo -e "\033[0;31mChanges in system configration files detected.";
echo -e "\033[0;31mRun ./repos/apache-mynewt-nimble/porting/update_generated_files.sh" \
Expand Down

0 comments on commit 3a5dd40

Please sign in to comment.