Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymkutsenko committed Jul 19, 2024
1 parent a137cde commit 43105fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/graphql-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
steps:
- name: get sha for '${{ inputs.repository }}@${{ inputs.commit }}'
id: sha
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
result=$(curl -s "https://api.github.com/repos/${{ inputs.repository }}/commits/${{ inputs.commit }}" -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" | jq -r ".sha")
result=$(curl -s "https://api.github.com/repos/${{ inputs.repository }}/commits/${{ inputs.commit }}" -H "Authorization: Bearer $GITHUB_TOKEN" | jq -r ".sha")
echo "result=$result" >> $GITHUB_OUTPUT
echo $result
Expand Down

0 comments on commit 43105fc

Please sign in to comment.