Skip to content

Commit

Permalink
Remove deprecated use of "::set-output"
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 15, 2023
1 parent 777cb36 commit b5f2951
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ 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
run: |
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'
Expand Down

0 comments on commit b5f2951

Please sign in to comment.