Skip to content

Commit 63b6c46

Browse files
committed
Build/Test Tools: Account for old branches in file checks.
Because old branches reference the reusable workflow files in `trunk` and their respective `.gitignore` files were not updated, some adjustments are needed to prevent failures in numbered branches. Follow up to [62533]. See #64893. git-svn-id: https://develop.svn.wordpress.org/trunk@62534 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ff9c07e commit 63b6c46

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/reusable-phpunit-tests-v2.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,4 @@ jobs:
209209
run: LOCAL_PHP_XDEBUG=true npm run "test:${PHPUNIT_SCRIPT}" -- -v --group xdebug --exclude-group __fakegroup__
210210

211211
- name: Check for uncommitted changes
212-
run: |
213-
if [ -n "$(git status --porcelain)" ]; then
214-
echo "Uncommitted changes detected:"
215-
git status --porcelain
216-
exit 1
217-
fi
212+
run: git diff --exit-code

.github/workflows/reusable-test-core-build-process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
- name: Check for uncommitted changes after cleaning
147147
shell: bash
148148
run: |
149-
if [ -n "$(git status --porcelain)" ]; then
149+
if [ -z "$(git status --porcelain -- . ':!wordpress.zip')" ]; then
150150
echo "Uncommitted changes detected:"
151151
git status --porcelain
152152
exit 1

0 commit comments

Comments
 (0)