From 5ba57ce01544c48d1d2a704fb5a4b07e5a7d0c6f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 18 Feb 2022 18:06:39 +0100 Subject: [PATCH] Update builder.yaml --- .github/workflows/builder.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/builder.yaml b/.github/workflows/builder.yaml index 2d5324338..5eaba2e3d 100644 --- a/.github/workflows/builder.yaml +++ b/.github/workflows/builder.yaml @@ -48,13 +48,15 @@ jobs: - name: Check if add-on should be built id: check + env: + HEAD: "${{ github.head_ref }}" run: | # yamllint disable rule:line-length # shellcheck disable=SC2157,SC2086 if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then echo "::set-output name=build_arch::true"; echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)"; - if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then + if [[ -z "${{ $HEAD }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then echo "BUILD_ARGS=" >> $GITHUB_ENV; fi else