Skip to content

Commit 9b6ba7a

Browse files
committed
Fix variables building with CI on push
1 parent f5ec33e commit 9b6ba7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
4141
- name: Build platform.phar
4242
env:
43-
CI_COMMIT_SHA: ${{ github.event.after }}
44-
CI_COMMIT_REF_NAME: ${{ github.head_ref }}
43+
CI_COMMIT_SHA: ${{ github.sha }}
44+
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
4545
run: |
4646
CI_COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | head -c8)
4747
./bin/platform self:build --no-composer-rebuild --yes --replace-version "$CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHORT_SHA" --output platform.phar

0 commit comments

Comments
 (0)