Skip to content

Commit 445a3f0

Browse files
authored
Add COMMIT file to master builds
1 parent 83c59a5 commit 445a3f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/phpmaster.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
if((Get-ChildItem .\builds\*.zip).Count -lt 5) {
102102
exit 1
103103
}
104+
(Get-Content .\builds\${{ matrix.config }}.json | ConvertFrom-Json).revision_last > COMMIT
105+
Get-ChildItem .\builds\* -Include ("php-$php_version*.zip", "php-master*.zip") | Foreach-Object { Compress-Archive -update COMMIT $_ }
104106
- name: Upload Artifact
105107
uses: actions/upload-artifact@v2
106108
with:
@@ -121,7 +123,7 @@ jobs:
121123
for file in ./builds/*/*; do
122124
mv $file ./uploads/
123125
done
124-
rm -rf uploads/*-src-*.zip || true
126+
rm -rf uploads/*-src-*.zip || true
125127
- name: Update release
126128
run: |
127129
set -x

0 commit comments

Comments
 (0)