diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index f5ec4bd7..9d4d883a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -15,6 +15,7 @@ concurrency: env: ccache: ccache GA_CI_SECRET: ${{ secrets.CI_SECRET }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: build-linux: @@ -169,30 +170,10 @@ jobs: tag_name: ${{ env.RELEASE }} files: projectGenerator-linux-armv7l-gui.gz - - name: Get Release ID for the Tag - id: get_release - if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') - run: | - RELEASE_ID=$(curl -s \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/openframeworks/projectGenerator/releases | jq -r '.[] | select(.tag_name=="${{ env.TAG_NAME }}") | .id') - - if [ -z "$RELEASE_ID" ]; then - echo "Release ID not found for tag: ${{ env.TAG_NAME }}" - exit 1 - fi - - echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV - echo "Found Release ID: ${RELEASE_ID}" - - - name: Update Release Description - if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') - run: | - curl -X PATCH \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/openframeworks/projectGenerator/releases/${{ env.RELEASE_ID }} \ - -d '{ - "body": "Updated release for tag: ${{ env.TAG_NAME }} - '"$(date '+%Y-%m-%d %H:%M:%S')"'" - }' + - name: Run latest-tag + uses: EndBug/latest-tag@latest + if: github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding') + with: + ref: nightly + description: Latest Always Nightly Builds + force-branch: false