Skip to content

Commit c074b1a

Browse files
committed
ci: Update GHA to make authenticated requests
1 parent 38f6243 commit c074b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Check GH Tag
3939
run: |
4040
url="https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ env.project_version }}"
41-
response=$(curl -s -o /dev/null -w "%{http_code}" "$url")
41+
response=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GIT_TOKEN }}" "$url")
4242
if [ "$response" -eq 200 ]; then
4343
echo "Release tag v${{ env.project_version }} already exists."
4444
echo "release_exists=true" >> $GITHUB_ENV

0 commit comments

Comments
 (0)