Skip to content

Commit

Permalink
Make sure builder image is pulled by default (#218)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Jan Čermák <[email protected]>
  • Loading branch information
agners and sairon authored Aug 14, 2024
1 parent 73d9da5 commit 34ed6fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
--${{ matrix.architecture }} \
--target /data \
--generic ${{ github.sha }}
no-pull: true
pull: "false"
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 \
Expand Down

0 comments on commit 34ed6fa

Please sign in to comment.