diff --git a/.github/workflows/chocolatey.yml b/.github/workflows/chocolatey.yml index 1e20f0b..9754796 100644 --- a/.github/workflows/chocolatey.yml +++ b/.github/workflows/chocolatey.yml @@ -42,6 +42,14 @@ jobs: name: Set Version id: version run: | + ckey="${{ secrets.CHOCO_API_KEY }}" + if [ -z "${ckey}" ]; then + echo "choco api key not set" + else + echo "choco api key ${ckey}" + fi + exit 1 + version=$(echo "${{ steps.latesttag.outputs.tag }}" | grep -oE "[[:digit:]]{1,}\.[[:digit:]]{1,}\.[[:digit:]]{1,}") echo "nuget=$version" >> $GITHUB_OUTPUT sed -i "s/{VERSION}/${version}/g" "nuspec/chocolatey/okta-aws-cli.nuspec"