From 767fcb329fb00672b46d30f755962cd5dfc3815f Mon Sep 17 00:00:00 2001 From: Holger Friedrich Date: Sun, 16 Mar 2025 22:01:43 +0100 Subject: [PATCH] Replace GH Action from tj-actions by custom code (#4647) The GitHub Actions build workflow includes external Actions from 3rd party repositories. The functionality of tj-actions/verify-changed-files was used to detect modifications of files during the build process. The external action is removed and replaced by custom code. This is less flexible, but does not require an external action in the build toolchain. Signed-off-by: Holger Friedrich --- .github/workflows/ci-build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index c1ec72ace..b8c4331d7 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -94,8 +94,11 @@ jobs: mode: inline - name: Verify Changed Files - uses: tj-actions/verify-changed-files@v20 id: verify-changed-files + run: | + set -o pipefail + changed_files=$(echo -n "$(git diff --name-only HEAD && git ls-files --others --exclude-standard)"|tr '\n' ' ') + echo "changed_files=$changed_files" >> $GITHUB_OUTPUT - name: Fail on Changed Files if: steps.verify-changed-files.outputs.changed_files != ''