From 9609c1b39b56b831e5c3d6d7b95837e1a5ab72d0 Mon Sep 17 00:00:00 2001 From: Carlo Date: Thu, 19 Dec 2024 19:47:19 +0100 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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