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

View File

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