Skip to content

Commit d5efa47

Browse files
authored
Update toPages.yml : Bugfix : Work with one exact release
1 parent e47117a commit d5efa47

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/toPages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ jobs:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
run: |
5656
release_name="${{ github.event.inputs.release_name }}"
57-
api_url="https://api.github.com/repos/HelpViewer/helpHello/releases"
58-
releases=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "$api_url")
57+
api_url="https://api.github.com/repos/HelpViewer/helpHello/releases/tags/$tag"
58+
release=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "$api_url")
5959
6060
mkdir -p hlp
6161
62-
echo "$releases" | jq -c '.[]' | while read release; do
6362
echo "$release" | jq -c '.assets[] | select(.name | endswith(".zip"))' | while read asset; do
6463
name=$(echo "$asset" | jq -r '.name')
6564
url=$(echo "$asset" | jq -r '.url')
@@ -68,7 +67,6 @@ jobs:
6867
-H "Authorization: token $GITHUB_TOKEN" \
6968
"$url" -o "hlp/$name"
7069
done
71-
done
7270
7371
- name: Commit and push changes
7472
run: |

0 commit comments

Comments
 (0)