Skip to content

Commit 73ea3e6

Browse files
committed
add FRANKENPHP_VERSION
1 parent 9e4105d commit 73ea3e6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/static.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,19 @@ jobs:
224224
with:
225225
ref: ${{ needs.prepare.outputs.ref }}
226226
persist-credentials: false
227+
- name: Set FRANKENPHP_VERSION
228+
run: |
229+
if [ "${GITHUB_REF_TYPE}" == "tag" ]; then
230+
export FRANKENPHP_VERSION=${GITHUB_REF_NAME:1}
231+
elif [ "${GITHUB_EVENT_NAME}" == "schedule" ]; then
232+
export FRANKENPHP_VERSION="${REF}"
233+
else
234+
export FRANKENPHP_VERSION=${GITHUB_SHA}
235+
fi
236+
237+
echo "FRANKENPHP_VERSION=${FRANKENPHP_VERSION}" >> "${GITHUB_ENV}"
238+
env:
239+
REF: ${{ needs.prepare.outputs.ref }}
227240
- name: Set up Docker Buildx
228241
uses: docker/setup-buildx-action@v3
229242
with:

0 commit comments

Comments
 (0)