Skip to content

Commit

Permalink
fix deprecated ::set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Sep 16, 2023
1 parent 8d97bc7 commit fd5c6dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit fd5c6dd

Please sign in to comment.