Skip to content

Commit

Permalink
make authenticated call for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jun 4, 2024
1 parent ca41cc8 commit dae7060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/aws-jll-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
REPO="$OWNER/$(echo "$LIBRARY" | tr '_' '-')" # Replace '_' with '-'
echo "REPO=$REPO"
# Get the tags
RELEASES=$(curl --retry 5 -L https://api.github.com/repos/${REPO}/git/refs/tags)
RELEASES=$(curl --retry 5 -L -H "Authorization: token ${{ secrets.PAT }}" https://api.github.com/repos/${REPO}/git/refs/tags)
echo "RELEASES=$RELEASES"
# Parse and sort the versions to get the highest version
LATEST_VERSION=$(echo $RELEASES | jq -r '.[] | select(.ref | test("refs/tags/v")) | .ref' | sed 's/refs\/tags\/v//' | sort -V | tail -n 1)
Expand Down

0 comments on commit dae7060

Please sign in to comment.