Skip to content

Commit 66c5bfa

Browse files
committed
dedup changed files testing
1 parent 8a9e828 commit 66c5bfa

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/actions/verify-generated-files/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ runs:
1313
ext/tokenizer/tokenizer_data_gen.php
1414
build/gen_stub.php -f --generate-optimizer-info --verify
1515
ext/phar/makestub.php
16-
# Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
17-
git add . -N && git diff -a --exit-code
16+
.github/scripts/test-directory-unchanged.sh .

.github/scripts/download-bundled/verify-directory-unchanged.sh renamed to .github/scripts/test-directory-unchanged.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/sh
22
set -ex
3-
cd "$(dirname "$0")/../../.."
43

5-
cd "$1"
4+
cd "$(dirname "$0")/../../$1"
65

76
# display overview of changed files
87
git status

.github/workflows/verify-bundled-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333

3434
- name: PCRE2 - Verify files
3535
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || (github.event_name != 'push' && github.event_name != 'pull_request')) }}
36-
run: .github/scripts/download-bundled/verify-directory-unchanged.sh ext/pcre/pcre2lib
36+
run: .github/scripts/test-directory-unchanged.sh ext/pcre/pcre2lib

0 commit comments

Comments
 (0)