Skip to content

Commit 4464e54

Browse files
Replace GH Action from tj-actions by custom code (openhab#18399)
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 <[email protected]>
1 parent 3219768 commit 4464e54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci-build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ jobs:
102102
mode: inline
103103

104104
- name: Verify Changed Files
105-
uses: tj-actions/verify-changed-files@v20
106105
id: verify-changed-files
106+
run: |
107+
set -o pipefail
108+
changed_files=$(echo -n "$(git diff --name-only HEAD && git ls-files --others --exclude-standard)"|tr '\n' ' ')
109+
echo "changed_files=$changed_files" >> $GITHUB_OUTPUT
107110
108111
- name: Fail on Changed Files
109112
if: steps.verify-changed-files.outputs.changed_files != ''

0 commit comments

Comments
 (0)