Skip to content

Commit

Permalink
Update curl call
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri committed Jun 29, 2023
1 parent eac3dc9 commit 0a05772
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,11 @@ jobs:
- name: Get Release Status
if: ${{ env.STOP_JOB != 'true' }}
run: |
response_status=404
curl --fail-with-body -L \
-X GET \
response_status=$(curl --fail-with-body -I -L -s -o /dev/null -w "%{http_code}" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/releases/tags/"$RELEASE_TAG" \
> /dev/null \
|| response_status=$?
https://api.github.com/repos/${{ github.repository }}/releases/tags/"$RELEASE_TAG")
if [ "$response_status" -ne 404 ] ; then
if [ "$response_status" -eq 200 ] ; then
Expand Down

0 comments on commit 0a05772

Please sign in to comment.