diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5e9061f..9e00acc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -52,7 +52,8 @@ jobs: f"INCOMING_REF={INCOMING_REF}\n" f"TAG_REF={TAG_REF}" ) - print(f"::set-output name=tag-ref::{TAG_REF}") + with open(os.environ["GITHUB_OUTPUT"], "a") as gh_out: + gh_out.write(f"tag-ref={TAG_REF}\n") shell: python - name: Get the SHA associated with the incoming ref id: get-incoming-sha @@ -60,7 +61,7 @@ jobs: INCOMING_SHA=$(gh api repos/cantera/cantera/git/matching-refs/${INCOMING_REF} \ -H "Accept: application/vnd.github.v3+json" --jq ".[0].object.sha") echo "INCOMING_SHA=${INCOMING_SHA}" >> $GITHUB_ENV - echo "::set-output name=incoming-sha::${INCOMING_SHA}" + echo "incoming-sha=${INCOMING_SHA}" >> $GITHUB_OUTPUT - name: Post the status to the upstream commit id: set-the-status if: env.TAG_REF == 'false'