File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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+ }'
You can’t perform that action at this time.
0 commit comments