This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ jobs:
7272 popd
7373 - name : Build OSX Image
7474 run : |
75+ REPOSITORY="ComplianceAsCode/content"
7576 chmod +x ./build-for-osx.sh
7677 ./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}'`
78+ wget -q -O- https://api.github.com/repos/${REPOSITORY}/releases/latest | jq -r '.tag_name'
79+ REL_TAG=`wget -q -O- https://api.github.com/repos/${REPOSITORY}/releases/latest | jq -r '.tag_name'`
7880 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
81+ DWN_LINK=" https://github.com/${REPOSITORY}/ releases/download/${REL_TAG} /scap-security-guide-${REL_TAG_NUM}. zip"
8082 if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
8183 wget "${DWN_LINK}" -O ssg.zip
8284 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/
You can’t perform that action at this time.
0 commit comments