Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 1493399

Browse files
committed
Use latest CaC/content package version when building for Mac OS X.
1 parent 72379e0 commit 1493399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ jobs:
7474
run: |
7575
chmod +x ./build-for-osx.sh
7676
./build-for-osx.sh
77-
REL_TAG=`curl -s "https://github.com/ComplianceAsCode/content/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}'`
77+
REL_TAG=`wget -q -O- https://api.github.com/repos/ComplianceAsCode/content/releases/latest | jq -r '.tag_name'`
7878
REL_TAG_NUM=`echo ${REL_TAG} | cut -d"v" -f2`
79-
DWN_LINK=https://github.com/ComplianceAsCode/content/releases/download/v0.1.63/scap-security-guide-0.1.63.zip
79+
DWN_LINK="https://github.com/ComplianceAsCode/content/releases/download/${REL_TAG}/scap-security-guide-${REL_TAG_NUM}.zip"
8080
if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
8181
wget "${DWN_LINK}" -O ssg.zip
8282
mkdir -p `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/ && unzip ssg.zip && cp -a scap-security-guide-*/* `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/

0 commit comments

Comments
 (0)