diff --git a/.github/workflows/publish-go-nightly-task.yml b/.github/workflows/publish-go-nightly-task.yml index 650071f3..f7c4d489 100644 --- a/.github/workflows/publish-go-nightly-task.yml +++ b/.github/workflows/publish-go-nightly-task.yml @@ -121,6 +121,7 @@ jobs: KEYCHAIN_PASSWORD: keychainpassword run: | echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode >"${{ env.INSTALLER_CERT_MAC_PATH }}" + security create-keychain \ -p "${{ env.KEYCHAIN_PASSWORD }}" \ "${{ env.KEYCHAIN }}" @@ -204,7 +205,7 @@ jobs: -C ../../ \ LICENSE.txt - echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV + echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >>$GITHUB_ENV - name: Replace artifact with notarized build uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index ebe88b14..e2a28ff9 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -169,7 +169,8 @@ jobs: - name: Write gon config to file # gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20) run: | - cat >"${{ env.GON_CONFIG_PATH }}" <"${{ env.GON_CONFIG_PATH }}" \ + </dev/null; then + if + ! which licensed \ + &>/dev/null + then if [[ {{OS}} == "windows" ]]; then echo "Licensed does not have Windows support." echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact." @@ -606,13 +609,19 @@ tasks: run: when_changed cmds: - | - if ! which go &>/dev/null; then + if + ! which go \ + &>/dev/null + then echo "Go not found or not in PATH." echo "Please install: https://go.dev/doc/install" exit 1 fi - | - if ! which python &>/dev/null; then + if + ! which python \ + &>/dev/null + then python_constraint="$( \ yq \ --input-format toml \ @@ -627,7 +636,10 @@ tasks: exit 1 fi - | - if ! which pipx &>/dev/null; then + if + ! which pipx \ + &>/dev/null + then echo "pipx not found or not in PATH." echo "Please install: https://pipx.pypa.io/stable/installation/#installing-pipx" exit 1 @@ -734,7 +746,10 @@ tasks: exit 1 fi - | - if ! which shellcheck &>/dev/null; then + if + ! which shellcheck \ + &>/dev/null + then echo "shellcheck not installed or not in PATH." echo "Please install: https://github.com/koalaman/shellcheck#installing" exit 1 @@ -774,7 +789,10 @@ tasks: exit 1 fi - | - if ! which shfmt &>/dev/null; then + if + ! which shfmt \ + &>/dev/null + then echo "shfmt not installed or not in PATH. Please install: https://github.com/mvdan/sh#shfmt" exit 1 fi