Skip to content

Commit d88c27a

Browse files
committed
Fix CI to always use releases.properties from main branch
1 parent 71aab71 commit d88c27a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/php-extension-test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040

4141
- name: Get releases.properties from main branch
4242
run: |
43-
# Fetch releases.properties from main branch if it doesn't exist in current branch
44-
if [ ! -f "releases.properties" ]; then
45-
echo "releases.properties not found in current branch, fetching from main..."
46-
git fetch origin main:main
47-
git checkout main -- releases.properties || echo "Could not fetch releases.properties from main"
48-
fi
43+
# Always fetch releases.properties from main branch to ensure we have the latest release URLs
44+
echo "Fetching releases.properties from main branch..."
45+
git fetch origin main:main
46+
git checkout origin/main -- releases.properties || echo "Could not fetch releases.properties from main"
47+
echo "✅ Using releases.properties from main branch"
4948
5049
- name: Get changed PHP versions
5150
id: get-versions

0 commit comments

Comments
 (0)