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

Commit 172a6ea

Browse files
yuumasatoredhatrises
authored andcommitted
Update content repository in travis script
1 parent f719d54 commit 172a6ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ before_script:
2626

2727
script:
2828
- ./build-for-osx.sh
29-
- wget `curl -s https://api.github.com/repos/openscap/scap-security-guide/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"` -O ssg.zip
29+
# Parse release page json to obtain link to latest content zip file and download it
30+
- wget `curl -s https://api.github.com/repos/ComplianceAsCode/content/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"` -O ssg.zip
3031
- 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/
3132
- cd build-osx && sh osx-create-dmg.sh
3233

0 commit comments

Comments
 (0)