From ca859d680cd85170d5ddd9dd8de2e667b9dbabdb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 18 Feb 2022 18:09:43 +0100 Subject: [PATCH] Update check-pr.yaml --- .github/workflows/check-pr.yaml | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/check-pr.yaml b/.github/workflows/check-pr.yaml index 8f0c17667..8f35534af 100644 --- a/.github/workflows/check-pr.yaml +++ b/.github/workflows/check-pr.yaml @@ -152,24 +152,24 @@ jobs: run: | # shellcheck disable=SC2076,SC2059 labels="io.hass.version=${{ steps.information.outputs.version }}" - labels=$(printf "$labels\nio.hass.name=${{ steps.information.outputs.name }}") - labels=$(printf "$labels\nio.hass.description=${{ steps.information.outputs.description }}") - labels=$(printf "$labels\nio.hass.type=addon") - labels=$(printf "$labels\nio.hass.url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/tree/master/${{ matrix.addon }}") - labels=$(printf "$labels\norg.opencontainers.image.title=${{ steps.information.outputs.name }}") - labels=$(printf "$labels\norg.opencontainers.image.description=${{ steps.information.outputs.description }}") - labels=$(printf "$labels\norg.opencontainers.image.version=${{ steps.information.outputs.version }}") - labels=$(printf "$labels\norg.opencontainers.image.authors=Poeschl ") - labels=$(printf "$labels\norg.opencontainers.image.url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}") - labels=$(printf "$labels\norg.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/tree/master/${{ matrix.addon }}") - labels=$(printf "$labels\norg.opencontainers.image.created=$(date -Is)") - labels=$(printf "$labels\norg.opencontainers.image.revision=${GITHUB_SHA}") + labels=$(printf '%s' "$labels\nio.hass.name=${{ steps.information.outputs.name }}") + labels=$(printf '%s' "$labels\nio.hass.description=${{ steps.information.outputs.description }}") + labels=$(printf '%s' "$labels\nio.hass.type=addon") + labels=$(printf '%s' "$labels\nio.hass.url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/tree/master/${{ matrix.addon }}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.title=${{ steps.information.outputs.name }}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.description=${{ steps.information.outputs.description }}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.version=${{ steps.information.outputs.version }}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.authors=Poeschl ") + labels=$(printf '%s' "$labels\norg.opencontainers.image.url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.source=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/tree/master/${{ matrix.addon }}") + labels=$(printf '%s' "$labels\norg.opencontainers.image.created=$(date -Is)") + labels=$(printf '%s' "$labels\norg.opencontainers.image.revision=${GITHUB_SHA}") echo "Generic labels: $labels" - armhf_labels=$(printf "$labels\nio.hass.arch=armhf") - armv7_labels=$(printf "$labels\nio.hass.arch=armv7") - aarch64_labels=$(printf "$labels\nio.hass.arch=aarch64") - amd64_labels=$(printf "$labels\nio.hass.arch=amd64") - i386_labels=$(printf "$labels\nio.hass.arch=i386") + armhf_labels=$(printf '%s' "$labels\nio.hass.arch=armhf") + armv7_labels=$(printf '%s' "$labels\nio.hass.arch=armv7") + aarch64_labels=$(printf '%s' "$labels\nio.hass.arch=aarch64") + amd64_labels=$(printf '%s' "$labels\nio.hass.arch=amd64") + i386_labels=$(printf '%s' "$labels\nio.hass.arch=i386") # allow multiline outputs, see https://github.community/t/set-output-truncates-multiline-strings/16852 armhf_labels="${armhf_labels//$'\n'/'%0A'}" armv7_labels="${armv7_labels//$'\n'/'%0A'}"