Skip to content

Commit

Permalink
CI: fix GH release API call
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Oct 27, 2021
1 parent 76d5543 commit 01cf5bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version 2
# Version 2021-10-27
name: Java CI
on: [push, pull_request]

Expand Down Expand Up @@ -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'"
Expand Down

0 comments on commit 01cf5bd

Please sign in to comment.