Skip to content

Commit bce04f9

Browse files
NO-JIRA fix(gha): prevent misleading compsize error in CI (#1257)
Adds a condition to the compsize execution step in the GitHub Actions workflow to ensure it only runs if the `btrfs-compsize` package was installed successfully. This prevents the workflow from failing with a `compsize: command not found` error when the actual issue is the failed installation of `btrfs-compsize`. Also, reordered `id` and `run` in the installation step for stylistic consistency. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 6300362 commit bce04f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ jobs:
146146
147147
df -h
148148
149-
- run: sudo apt-get install -y btrfs-compsize
149+
- id: install-compsize
150+
run: sudo apt-get install -y btrfs-compsize
150151

151152
- name: Mount lvm overlay for podman builds
152153
run: |
@@ -705,4 +706,4 @@ jobs:
705706
if: "${{ !cancelled() }}"
706707

707708
- run: sudo compsize -x "${HOME}/.local/share/containers"
708-
if: "${{ !cancelled() }}"
709+
if: "${{ !cancelled() && steps.install-compsize.outcome == 'success' }}"

0 commit comments

Comments
 (0)