Skip to content

Commit

Permalink
Add silent curl
Browse files Browse the repository at this point in the history
  • Loading branch information
rymndhng committed Oct 26, 2019
1 parent aff4181 commit bd5a05a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -z "${GITHUB_SHA}" ]; then
fi

function skip_if_norelease_set {
curl --header "Authorization: token ${GITHUB_TOKEN}" \
curl --silent --header "Authorization: token ${GITHUB_TOKEN}" \
--url "https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" \
> last_commit

Expand All @@ -34,7 +34,7 @@ function skip_if_norelease_set {

function generate_new_release_data {
# Get the last release tag
curl --header "Authorization: token ${GITHUB_TOKEN}" \
curl --silent --header "Authorization: token ${GITHUB_TOKEN}" \
--url "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest" \
> last_release

Expand All @@ -55,7 +55,7 @@ EOF

function create_new_release {
if [ -z "$DRYRUN" ]; then
curl --header "Authorization: token ${GITHUB_TOKEN}" \
curl --silent --header "Authorization: token ${GITHUB_TOKEN}" \
--url "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases" \
--request POST \
--data @new_release_data
Expand Down

0 comments on commit bd5a05a

Please sign in to comment.