Skip to content

Commit 2fc003a

Browse files
cho-mcarlocab
andcommitted
workflows/docker: improve handling of conditional step
Co-authored-by: Carlo Cabrera <github@carlo.cab>
1 parent 5bbba29 commit 2fc003a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/docker.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,9 @@ jobs:
190190
labels: ${{ needs.generate-tags.outputs.labels }}
191191

192192
- name: Set environment variables
193-
run: |
194-
# odeprecated: remove 22.04 in Homebrew >=5.4
195-
if [[ "${VERSION}" == "22.04" ]]; then
196-
echo "HOMEBREW_GLIBC_TESTING=1" >> "$GITHUB_ENV"
197-
fi
198-
env:
199-
VERSION: ${{ matrix.version }}
193+
if: matrix.version == '22.04'
194+
# odeprecated: remove 22.04 in Homebrew >=5.4
195+
run: echo "HOMEBREW_GLIBC_TESTING=1" >> "$GITHUB_ENV"
200196

201197
- name: Run brew test-bot --only-setup
202198
run: docker run --env HOMEBREW_GLIBC_TESTING --rm brew brew test-bot --only-setup

0 commit comments

Comments
 (0)