We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a88627e commit bc069b8Copy full SHA for bc069b8
1 file changed
.github/workflows/version-check.yml
@@ -77,8 +77,11 @@ jobs:
77
78
while IFS= read -r path; do
79
mkdir -p "$TMP_DIR/$(dirname "$path")"
80
- url="https://raw.githubusercontent.com/${REPO}/${TAG}/${path}"
81
- if ! curl --fail --show-error --location "$url" --output "$TMP_DIR/$path"; then
+ url="https://api.github.com/repos/${REPO}/contents/${path}?ref=${TAG}"
+ if ! curl --fail --show-error --location --retry 5 --retry-all-errors --retry-delay 2 \
82
+ --header "Accept: application/vnd.github.raw" \
83
+ --header "Authorization: Bearer ${{ github.token }}" \
84
+ "$url" --output "$TMP_DIR/$path"; then
85
echo "::error::Missing managed asset on ${TAG}: ${path}"
86
exit 1
87
fi
0 commit comments