Skip to content

Commit 9d3139f

Browse files
committed
Update Github Release Info
1 parent 2d2dd48 commit 9d3139f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build-linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,23 @@ jobs:
166166
token: ${{ secrets.GITHUB_TOKEN }}
167167
tag_name: ${{ env.RELEASE }}
168168
files: projectGenerator-linux-armv7l-gui.gz
169+
170+
- name: Get Latest Nightly Release ID
171+
id: get_release
172+
run: |
173+
RELEASE_ID=$(curl -s \
174+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
175+
-H "Accept: application/vnd.github.v3+json" \
176+
https://api.github.com/repos/openframeworks/projectGenerator/releases | jq '.[] | select(.tag_name=="nightly") | .id')
177+
echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV
178+
echo "Found Release ID: ${RELEASE_ID}"
179+
180+
- name: Update Nightly Release Description
181+
run: |
182+
curl -X PATCH \
183+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
184+
-H "Accept: application/vnd.github.v3+json" \
185+
https://api.github.com/repos/openframeworks/projectGenerator/releases/${{ env.RELEASE_ID }} \
186+
-d '{
187+
"body": "Updated nightly release: '"$(date '+%Y-%m-%d %H:%M:%S')"'"
188+
}'

0 commit comments

Comments
 (0)