From 34ed6fac60c6e92328f9324b4141df250c550f81 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 14 Aug 2024 12:18:39 +0200 Subject: [PATCH] Make sure builder image is pulled by default (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Make sure builder image is pulled by default * Use single quote in GitHub Action expression * Invert logic Avoid double negation which is error prone. * Update action.yml Co-authored-by: Jan Čermák --------- Co-authored-by: Jan Čermák --- .github/workflows/test.yml | 2 +- action.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3963451..acf7290 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,4 +46,4 @@ jobs: --${{ matrix.architecture }} \ --target /data \ --generic ${{ github.sha }} - no-pull: true + pull: "false" diff --git a/action.yml b/action.yml index c39a99a..54a8be3 100644 --- a/action.yml +++ b/action.yml @@ -5,10 +5,10 @@ inputs: description: "Arguments passed to the builder" required: true default: "--help" - no-pull: - description: "Do not pull the latest version of builder (for testing)" + pull: + description: "Pull the latest version of builder (set to `false` for testing)" required: false - default: false + default: "true" runs: using: "composite" steps: @@ -27,7 +27,7 @@ runs: echo "version=${input}" >> "$GITHUB_OUTPUT" - shell: bash - if: ${{ inputs.no-pull == true }} + if: ${{ inputs.pull == 'true' }} run: | docker pull ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }} cosign verify \