diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c0f7126..4780906 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -30,9 +30,8 @@ jobs: - name: Get the release ID id: get_release run: | - RELEASE_ID=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.id') - echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV - echo RELEASE_ID $RELEASE_ID + echo "RELEASE_ID=${{ github.event.release.id }}" >> $GITHUB_ENV + echo "Release ID: ${{ github.event.release.id }}" - name: Upload the artifacts uses: actions/upload-release-asset@v1