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

Commit 4713478

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ 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+
REL_TAG=`wget -q -O- https://api.github.com/repos/${REPOSITORY}/releases/latest | jq -r '.tag_name'`
7879
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"
8081
if [ -z "${DWN_LINK}" ]; then echo 'Could not get the ZIP URL! It is empty!'; exit 1; fi
8182
wget "${DWN_LINK}" -O ssg.zip
8283
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)