Skip to content

Commit

Permalink
Make Mac PKG Test v agnostic (#392)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr authored Dec 21, 2023
1 parent 2206f7e commit fc9511a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-released-osx-pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Version
id: version
run: |
V=${{ github.event.inputs.version }}
VERSION=$(echo $V | sed 's/^v//')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Download Package
run: |
curl -SL -O https://releases.mondoo.com/mondoo/${{ github.event.inputs.version }}/mondoo_${{ github.event.inputs.version }}_darwin_universal.pkg
curl -SL -O https://releases.mondoo.com/mondoo/${{ steps.version.outputs.version }}/mondoo_${{ steps.version.outputs.version }}_darwin_universal.pkg
- name: Install Package
run: |
sudo installer -pkg mondoo_${{ github.event.inputs.version }}_darwin_universal.pkg -target /
sudo installer -pkg mondoo_${{ steps.version.outputs.version }}_darwin_universal.pkg -target /
- name: Executing cnspec...
run: |
Expand Down

0 comments on commit fc9511a

Please sign in to comment.