We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce06e90 commit 36abad9Copy full SHA for 36abad9
.github/workflows/ci-build.yml
@@ -72,10 +72,18 @@ jobs:
72
name: build-log-java-${{ matrix.java }}-${{ matrix.os }}
73
path: build.log
74
75
+ - name: Change Files
76
+ run: |
77
+ echo modification >> CONTRIBUTING.md
78
+ touch new-file
79
+ mkdir new-dir
80
+ touch new-dir/new-file
81
+ rm README.md
82
+
83
- name: Verify Changed Files
84
id: verify-changed-files
85
run: |
- changed_files=$(git diff --name-only ${{ github.sha }} | tr '\n' ' ')
86
+ changed_files=$(echo -n "$(git diff --name-only HEAD 2>/dev/null ; git ls-files --others --exclude-standard 2>/dev/null)"|tr '\n' ' ')
87
echo "changed_files=$changed_files" >> $GITHUB_OUTPUT
88
89
- name: Fail on Changed Files
0 commit comments