Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 519f554

Browse files
author
Vicente Canales
committed
try fetching trunk explicitly
1 parent 4a331e9 commit 519f554

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/add-strict-types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check for new PHP files
2222
id: check
2323
run: |
24-
git fetch origin trunk
24+
git fetch origin trunk:trunk
2525
NEW_PHP_FILES=$(git diff --name-only origin/trunk...HEAD -- '*.php' | xargs grep -LE 'declare\( strict_types=1\ )')
2626
if [ -n "$NEW_PHP_FILES" ]; then
2727
echo "::set-output name=strict_types_needed::true"
@@ -33,7 +33,7 @@ jobs:
3333
- name: Add strict types to new PHP files
3434
if: steps.check.outputs.strict_types_needed == 'true'
3535
run: |
36-
git fetch origin trunk
36+
git fetch origin trunk:trunk
3737
for file in $(git diff --name-only origin/trunk...HEAD -- '*.php' | xargs grep -LE 'declare\( strict_types=1\ )'); do
3838
sed -i '1s/^/<?php declare( strict_types=1 );\n/' "$file"
3939
git add "$file"

0 commit comments

Comments
 (0)