fix(ci): correct malformed expression in docker-publish Inspect step (#3425)

The Inspect step had `${{ github.ref == ''refs/heads/main'' ... }}` with
doubled single quotes (YAML-scalar escaping) inside a `run: |` block, which
GitHub's expression parser rejects, failing the whole workflow at startup
(no jobs run). Replace with a plain shell conditional on $GITHUB_REF.
This commit is contained in:
Kenny Van de Maele
2026-06-08 12:06:00 +02:00
committed by GitHub
parent ab2f7cffca
commit aab203cf51
+1 -1
View File
@@ -122,7 +122,7 @@ jobs:
IMAGE_NAME: ${{ env.IMAGE_NAME }}
- name: Inspect
run: |
ref='${{ github.ref == ''refs/heads/main'' && ''latest'' || ''dev'' }}'
if [ "$GITHUB_REF" = "refs/heads/main" ]; then ref=latest; else ref=dev; fi
docker buildx imagetools inspect "${REGISTRY}/${IMAGE_NAME}:${ref}"
env:
REGISTRY: ${{ env.REGISTRY }}