use GITHUB_OUTPUT instead of set-output (#100)

This commit is contained in:
Tobias Bisa Wallin
2022-12-25 09:31:39 +01:00
committed by GitHub
parent d5d59bbe53
commit a9e0cd5932
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(gh release view --repo godotengine/godot --json tagName --jq .tagName)
echo "::set-output name=tag::$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
current:
name: Fetch Current Godot CI release
runs-on: ubuntu-20.04
@@ -28,7 +28,7 @@ jobs:
with:
fetch-depth: 0
- id: parse
run: echo "::set-output name=tag::$(git tag --list --sort=-creatordate | head --lines 1)"
run: echo "tag=$(git tag --list --sort=-creatordate | head --lines 1)" >> $GITHUB_OUTPUT
create:
needs: [fetch, current]
name: Create New Godot CI Release

View File

@@ -15,8 +15,8 @@ jobs:
- id: calculate
run: |
REF_NAME=${{ github.ref_name }}
echo "::set-output name=version::${REF_NAME%-*}"
echo "::set-output name=release_name::${REF_NAME#*-}"
echo "version=${REF_NAME%-*}" >> $GITHUB_OUTPUT
echo "release_name=${REF_NAME#*-}" >> $GITHUB_OUTPUT
build:
name: Build Image
runs-on: ubuntu-20.04