We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a26d35 commit 6e55ca1Copy full SHA for 6e55ca1
1 file changed
.github/workflows/toPages.yml
@@ -100,6 +100,20 @@ jobs:
100
"$url" -o "$hlpdir/$name"
101
done
102
103
+ _reponame=helpDevelop
104
+ api_url="https://api.github.com/repos/HelpViewer/$_reponame/releases/latest"
105
+ release=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "$api_url")
106
+ hlpdir=hlp-dguide
107
+
108
+ echo "$release" | jq -c '.assets[] | select(.name | endswith(".zip"))' | while read asset; do
109
+ name=$(echo "$asset" | jq -r '.name')
110
+ url=$(echo "$asset" | jq -r '.url')
111
+ echo "Downloading $name..."
112
+ curl -L -H "Accept: application/octet-stream" \
113
+ -H "Authorization: token $GITHUB_TOKEN" \
114
+ "$url" -o "$hlpdir/$name"
115
+ done
116
117
- name: Commit and push changes
118
run: |
119
git config user.name "github-actions[bot]"
0 commit comments