From a85b9227ab66c52d6bc5ed6aa8b01fa9b4d99cae Mon Sep 17 00:00:00 2001 From: Hugh Cunningham Date: Tue, 3 Oct 2023 16:47:36 -0700 Subject: [PATCH] test push version to api --- .github/workflows/push-version-to-api.yml | 3 +++ ironfish-cli/scripts/push-version.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/push-version-to-api.yml b/.github/workflows/push-version-to-api.yml index 6103823326..57fa8855ac 100644 --- a/.github/workflows/push-version-to-api.yml +++ b/.github/workflows/push-version-to-api.yml @@ -1,5 +1,8 @@ name: Push new version number to API on: + push: + branches: + - test-push-version-to-api workflow_dispatch: inputs: push_mainnet: diff --git a/ironfish-cli/scripts/push-version.sh b/ironfish-cli/scripts/push-version.sh index 9bf7e9654f..1688f6d82b 100755 --- a/ironfish-cli/scripts/push-version.sh +++ b/ironfish-cli/scripts/push-version.sh @@ -14,6 +14,7 @@ if ! command -v curl &> /dev/null; then fi VERSION="$(jq -r '.version' ironfish-cli/package.json)" +echo $VERSION STATUS="$(curl \ --write-out '%{http_code}' \ --silent \