Skip to content

Commit

Permalink
Do not pull the latest version of builder when testing
Browse files Browse the repository at this point in the history
When testing, pulling the latest version makes the whole test kinda
pointless, as the last version currently published gets tested instead
of the just built one. Add a new argument so we can still reuse the same
builder action, but skip pulling to reuse the freshly built builder.
  • Loading branch information
agners committed Aug 12, 2024
1 parent d5770f2 commit 0d1ce12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ jobs:
--${{ matrix.architecture }} \
--target /data \
--generic ${{ github.sha }}
no-pull: true
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +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)"
required: false
default: false
runs:
using: "composite"
steps:
Expand All @@ -23,6 +27,7 @@ runs:
echo "version=${input}" >> "$GITHUB_OUTPUT"
- shell: bash
if: ${{ inputs.no-pull == true }}
run: |
docker pull ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}
cosign verify \
Expand Down

0 comments on commit 0d1ce12

Please sign in to comment.