Skip to content

Commit

Permalink
ci: developing release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Bryce committed Dec 6, 2023
1 parent 2c79a4d commit 55e20f3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ci
on: [push, release]
on: [release]
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -66,18 +66,18 @@ jobs:
AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}"
RELEASE_ID=$TAG
echo "Verifying release"
HTTP_RESPONSE=$(curl --write-out "HTTPSTATUS:%{http_code}" \
-sSL \
-H "${AUTH_HEADER}" \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_ID}")
# echo "Verifying release"
# HTTP_RESPONSE=$(curl --write-out "HTTPSTATUS:%{http_code}" \
# -sSL \
# -H "${AUTH_HEADER}" \
# "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_ID}")
HTTP_STATUS=$(echo "$HTTP_RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
# HTTP_STATUS=$(echo "$HTTP_RESPONSE" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
if [[ "$HTTP_STATUS" -ne 200 ]]; then
echo "::error ::Release is missing"
exit 1
fi
# if [[ "$HTTP_STATUS" -ne 200 ]]; then
# echo "::error ::Release is missing"
# exit 1
# fi
path=proto-include
if [[ ! -d $path ]]; then exit 1; fi
Expand Down

0 comments on commit 55e20f3

Please sign in to comment.