Skip to content

Commit 2fa965d

Browse files
committed
fix version
1 parent b9db4aa commit 2fa965d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/static.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,17 @@ jobs:
224224
with:
225225
ref: ${{ needs.prepare.outputs.ref }}
226226
persist-credentials: false
227-
- name: Set FRANKENPHP_VERSION
227+
- name: Set VERSION
228228
run: |
229229
if [ "${GITHUB_REF_TYPE}" == "tag" ]; then
230-
export FRANKENPHP_VERSION=${GITHUB_REF_NAME:1}
230+
export VERSION=${GITHUB_REF_NAME:1}
231231
elif [ "${GITHUB_EVENT_NAME}" == "schedule" ]; then
232-
export FRANKENPHP_VERSION="${REF}"
232+
export VERSION="${REF}"
233233
else
234-
export FRANKENPHP_VERSION=${GITHUB_SHA}
234+
export VERSION=${GITHUB_SHA}
235235
fi
236236
237-
echo "FRANKENPHP_VERSION=${FRANKENPHP_VERSION}" >> "${GITHUB_ENV}"
237+
echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
238238
env:
239239
REF: ${{ needs.prepare.outputs.ref }}
240240
- name: Set up Docker Buildx
@@ -266,7 +266,6 @@ jobs:
266266
${{ fromJson(needs.prepare.outputs.push) && format('*.output=type=image,name={0},push-by-digest=true,name-canonical=true,push=true', env.IMAGE_NAME) || '' }}
267267
env:
268268
SHA: ${{ github.sha }}
269-
VERSION: ${{ (github.ref_type == 'tag' && github.ref_name) || needs.prepare.outputs.ref || 'dev' }}
270269
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
271270
- # Workaround for https://github.com/actions/runner/pull/2477#issuecomment-1501003600
272271
name: Export metadata

0 commit comments

Comments
 (0)