From fd5c6ddf8da82a6e734d4b93a5fb2e0b777dbe06 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Sat, 16 Sep 2023 15:34:43 +0900 Subject: [PATCH] fix deprecated `::set-output` --- .github/workflows/demo.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index e3dc71d..989c5dc 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -18,7 +18,7 @@ jobs: - id: extract-xcode-version run: | latest_xcode_version=$(cat .github/matrix.json | jq -r '.xcode_version | max') - echo "::set-output name=latest_xcode_version::$latest_xcode_version" + echo "latest_xcode_version=$latest_xcode_version" >> $GITHUB_OUTPUT test: name: Test needs: xcode-version @@ -37,7 +37,7 @@ jobs: id: test run: | platform=$(echo '${{ matrix.destination }}' | sed -E 's/platform=(.*)(,name=.*)/\1/g' | tr ' ' '_') - echo "::set-output name=platform::$platform" + echo "platform=$platform" >> $GITHUB_OUTPUT defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1 cd DemoApp/MockUserDefaultsDemoLib xcrun xcodebuild \ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2459ca7..fcc73aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,8 @@ jobs: - uses: actions/checkout@v3 - id: set-matrix run: | - echo "::set-output name=matrix::$(cat .github/matrix.json | jq -c .)" - echo "::set-output name=latest-xcode-version::$(cat .github/matrix.json | jq -rc '.xcode_version | max')" + echo "matrix=$(cat .github/matrix.json | jq -c .)" >> $GITHUB_OUTPUT + echo "latest-xcode-version=$(cat .github/matrix.json | jq -rc '.xcode_version | max')" >> $GITHUB_OUTPUT xcodebuild: name: via xcodebuild needs: generate-matrix @@ -44,7 +44,7 @@ jobs: id: test run: | platform=$(echo '${{ matrix.destination }}' | sed -E 's/platform=(.*)(,name=.*)/\1/g' | tr ' ' '_') - echo "::set-output name=platform::$platform" + echo "platform=$platform" >> $GITHUB_OUTPUT defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1 xcrun xcodebuild \ -enableCodeCoverage=YES \