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 <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2025-03-16 22:01:43 +01:00
committed by GitHub
parent 41720b4f0c
commit 767fcb329f
+4 -1
View File
@@ -94,8 +94,11 @@ jobs:
mode: inline mode: inline
- name: Verify Changed Files - name: Verify Changed Files
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files 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 - name: Fail on Changed Files
if: steps.verify-changed-files.outputs.changed_files != '' if: steps.verify-changed-files.outputs.changed_files != ''