From 8a89508382f30f4455df62fd2d46c10bc92fdbfe Mon Sep 17 00:00:00 2001 From: akrherz Date: Wed, 27 Oct 2021 08:31:52 -0500 Subject: [PATCH] CI: fix GH releases API call --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1496eaaf3..3dbeb7873 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -# Version 2 +# Version 2021-10-27 name: Java CI on: [push, pull_request] @@ -27,7 +27,7 @@ jobs: version=$(echo ${{ github.ref }} | cut -d '/' -f3 | cut -c 2-) echo "::set-output name=version::$version" echo "version is '$version'" - rel_id=$(curl -sL https://api.github.com/repos/${{github.repository}}/releases?access_token=${{ secrets.GITHUB_TOKEN }} | jq -r --arg TAG "$tag" '.[] | select(.tag_name==$TAG) | .id') + rel_id=$(curl -sL https://api.github.com/repos/${{github.repository}}/releases | jq -r --arg TAG "$tag" '.[] | select(.tag_name==$TAG) | .id') echo ::set-output name=rel_id::$rel_id echo "rel_id is '$rel_id'"