This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,12 @@ jobs:
72
72
popd
73
73
- name : Build OSX Image
74
74
run : |
75
+ REPOSITORY="ComplianceAsCode/content"
75
76
chmod +x ./build-for-osx.sh
76
77
./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
+ REL_TAG=`wget -q -O- https://api. github.com/repos/${REPOSITORY} /releases/latest | jq -r '.tag_name '`
78
79
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
80
+ DWN_LINK=" https://github.com/${REPOSITORY}/ releases/download/${REL_TAG} /scap-security-guide-${REL_TAG_NUM}. zip"
80
81
if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
81
82
wget "${DWN_LINK}" -O ssg.zip
82
83
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