Skip to content

Commit

Permalink
Set action step outputs via $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 12, 2022
1 parent 7835bb8 commit ac75910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: auto-version
run: |
version="$(~/auto version)"
echo "::set-output name=version::$version"
echo "version=$version" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -50,7 +50,7 @@ jobs:
id: latest-release
run: |
latest_tag="$(curl -fsSL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r .tag_name)"
echo "::set-output name=tag::$latest_tag"
echo "tag=$latest_tag" >> "$GITHUB_OUTPUT"
- name: Checkout source
uses: actions/checkout@v2
Expand Down

0 comments on commit ac75910

Please sign in to comment.