From 3a5dd40cdb37619d76563eb2b5b88da15b8f3df9 Mon Sep 17 00:00:00 2001 From: Wojciech Pietraszewski Date: Fri, 1 Mar 2024 15:43:30 +0100 Subject: [PATCH] ci: Fix Check ports syscfg update workflow Changes the way 'cd' command is used, so it takes into account that each step is run in a separate shell instance. --- .github/workflows/ports_syscfg_check.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ports_syscfg_check.yml b/.github/workflows/ports_syscfg_check.yml index 66d47a2350..ac45718b39 100644 --- a/.github/workflows/ports_syscfg_check.yml +++ b/.github/workflows/ports_syscfg_check.yml @@ -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" \