@@ -15,6 +15,7 @@ concurrency:
1515env :
1616 ccache : ccache
1717 GA_CI_SECRET : ${{ secrets.CI_SECRET }}
18+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1819
1920jobs :
2021 build-linux :
@@ -169,30 +170,10 @@ jobs:
169170 tag_name : ${{ env.RELEASE }}
170171 files : projectGenerator-linux-armv7l-gui.gz
171172
172- - name : Get Release ID for the Tag
173- id : get_release
174- if : github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
175- run : |
176- RELEASE_ID=$(curl -s \
177- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
178- -H "Accept: application/vnd.github.v3+json" \
179- https://api.github.com/repos/openframeworks/projectGenerator/releases | jq -r '.[] | select(.tag_name=="${{ env.TAG_NAME }}") | .id')
180-
181- if [ -z "$RELEASE_ID" ]; then
182- echo "Release ID not found for tag: ${{ env.TAG_NAME }}"
183- exit 1
184- fi
185-
186- echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV
187- echo "Found Release ID: ${RELEASE_ID}"
188-
189- - name : Update Release Description
190- if : github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
191- run : |
192- curl -X PATCH \
193- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
194- -H "Accept: application/vnd.github.v3+json" \
195- https://api.github.com/repos/openframeworks/projectGenerator/releases/${{ env.RELEASE_ID }} \
196- -d '{
197- "body": "Updated release for tag: ${{ env.TAG_NAME }} - '"$(date '+%Y-%m-%d %H:%M:%S')"'"
198- }'
173+ - name : Run latest-tag
174+ uses : EndBug/latest-tag@latest
175+ if : github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
176+ with :
177+ ref : nightly
178+ description : Latest Always Nightly Builds
179+ force-branch : false
0 commit comments