Skip to content

Commit 90c0826

Browse files
authored
fix: set pipefail (#112)
This ensures exit codes indicating failure aren't suppressed by pipes (which could be a problem, for example, with patterns like `curl ... | sudo tee ...`).
1 parent d150c94 commit 90c0826

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ runs:
163163
if: ${{ (inputs.squash == 'true' || inputs.build_chunked_oci == 'true' || inputs.rechunk == 'true') && steps.ubuntu_version.outputs.version == '22.04' }}
164164
shell: bash
165165
run: |
166+
set -euo pipefail
166167
# from https://askubuntu.com/questions/1414446/whats-the-recommended-way-of-installing-podman-4-in-ubuntu-22-04
167168
ubuntu_version='22.04'
168169
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key"
@@ -191,6 +192,7 @@ runs:
191192
if: ${{ inputs.verify_install == 'true' }}
192193
shell: bash
193194
run: |
195+
set -euo pipefail
194196
POLICY_FILE="/etc/containers/policy.json"
195197
CLI_IMAGE_REGISTRY="ghcr.io/blue-build/cli"
196198
MODULES_IMAGE_REGISTRY="ghcr.io/blue-build/modules"
@@ -242,6 +244,7 @@ runs:
242244
USE_UNSTABLE_CLI: ${{ inputs.use_unstable_cli }}
243245
CLI_VERSION: ${{ inputs.cli_version }}
244246
run: |
247+
set -euo pipefail
245248
if [[ "${USE_UNSTABLE_CLI}" == "true" && -z "${CLI_VERSION}" ]]; then
246249
CLI_VERSION_TAG="main"
247250
REPO_TAG="main"

0 commit comments

Comments
 (0)