From 4fa410ebb9f6188d5fa3647d5423a5db97c672c0 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Sat, 18 May 2024 08:45:17 -0600 Subject: [PATCH] fix(action): Only pull if missing from local storage --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 920c703..9fd087a 100644 --- a/action.yml +++ b/action.yml @@ -26,8 +26,7 @@ runs: - name: Sign kernel shell: bash run: | - podman pull "${{ inputs.image }}" - CONTAINER_ID=$(podman run --entrypoint /bin/bash --replace --name $(basename "${{ inputs.image }}") -dt "${{ inputs.image }}") + CONTAINER_ID=$(podman run --pull missing --entrypoint /bin/bash --replace --name $(basename "${{ inputs.image }}") -dt "${{ inputs.image }}") podman cp "${{ github.action_path }}"/sign-kernel.sh $(basename "${{ inputs.image }}"):/tmp/sign-kernel.sh podman exec -e KERNEL_SUFFIX="${{ inputs.kernel_suffix }}" -e PRIVKEY="${{ inputs.privkey }}" -e PUBKEY="${{ inputs.pubkey }}" $(basename "${{ inputs.image }}") "/tmp/sign-kernel.sh" buildah commit "$CONTAINER_ID" "${{ inputs.image }}"