diff --git a/.github/workflows/cmake-ctest.yml b/.github/workflows/cmake-ctest.yml index fc596429f..05374705f 100644 --- a/.github/workflows/cmake-ctest.yml +++ b/.github/workflows/cmake-ctest.yml @@ -432,7 +432,7 @@ jobs: NOTARY_KEY: ${{ vars.NOTARY_KEY }} run: | jsonout=$(/usr/bin/xcrun notarytool submit --wait --output-format json --apple-id ${{ env.NOTARY_USER }} --password ${{ env.NOTARY_KEY }} --team-id ${{ env.SIGNER }} ${{ runner.workspace }}/hdf4/build/${{ inputs.preset_name }}-macos-Clang/*.dmg) - echo "JSONOUT=$jsonout" >> $GITHUB_ENV + echo "JSONOUT=$jsonout" >> $GITHUB_OUTPUT if: ${{ needs.check-secret.outputs.sign-state == 'exists' }} shell: bash @@ -441,7 +441,7 @@ jobs: run: | echo "notary result is ${{ fromJson(steps.notarize-dmg.outputs.JSONOUT) }}" token=${{ fromJson(steps.notarize-dmg.outputs.JSONOUT).id }} - echo "ID_TOKEN=$token" >> "$GITHUB_ENV" + echo "ID_TOKEN=$token" >> "$GITHUB_OUTPUT" if: ${{ needs.check-secret.outputs.sign-state == 'exists' }} shell: bash @@ -454,15 +454,18 @@ jobs: NOTARY_USER: ${{ vars.NOTARY_USER }} NOTARY_KEY: ${{ vars.NOTARY_KEY }} run: | - notaryout=$(/usr/bin/xcrun notarytool info --apple-id ${{ env.NOTARY_USER }} --password ${{ env.NOTARY_KEY }} --team-id ${{ env.SIGNER }} ${{ steps.get-id-token.ID_TOKEN }}) - echo "NOTARYOUT=$notaryout" >> $GITHUB_ENV + { + echo 'NOTARYOUT<> $GITHUB_OUTPUT if: ${{ needs.check-secret.outputs.sign-state == 'exists' }} shell: bash - name: Get notary info (MacOS_latest) id: get-notary-info run: | - echo "notary info is ${{ steps.post-notary.NOTARYOUT }}." + echo "notary info is ${{ steps.post-notary.outputs.NOTARYOUT }}." if: ${{ needs.check-secret.outputs.sign-state == 'exists' }} shell: bash