Skip to content

Commit

Permalink
🐛 Use grep to assert target version is present (#409)
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev authored Jan 8, 2024
1 parent 8511b8c commit abebd0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-released-brew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
- name: Executing ${{ matrix.package }}....
run: |
ver=$(${{ matrix.package }} version)
contains($ver, ${{ steps.version.outputs.package_version}})
version=$(${{ matrix.package }} version)
echo $version
echo $version | grep -q ${{ steps.version.outputs.package_version}}
cask:
runs-on: macos-latest
Expand All @@ -65,5 +66,6 @@ jobs:
echo "package_version=${TRIMMED}" >> $GITHUB_OUTPUT
- name: Executing cnspec from Mondoo package....
run: |
ver=$(/Library/Mondoo/bin/cnspec version)
contains($ver, ${{ steps.version.outputs.package_version}})
version=$(${{ matrix.package }} version)
echo $version
echo $version | grep -q ${{ steps.version.outputs.package_version}}

0 comments on commit abebd0f

Please sign in to comment.