Skip to content

Commit 15ec27e

Browse files
authored
Merge pull request #57 from taji-taji/fix-github-actions-deprecated-command
change deprecated set-output command to $GITHUB_OUTPUT
2 parents 40279ac + 4cbb23d commit 15ec27e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/danger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212
- name: Cache dependencies
13-
uses: actions/cache@v2
13+
uses: actions/cache@v3
1414
with:
1515
path: |
1616
.build/artifacts

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
run: |
2929
release=$(gh release list --limit 1)
3030
release_array=($release)
31-
echo "::set-output name=LATEST_VERSION::${release_array[0]}"
31+
echo "LATEST_VERSION=${release_array[0]}" >> $GITHUB_OUTPUT
3232
- name: Create Next Version
3333
id: create-next-version
3434
run: |
3535
latest_version=${{ steps.fetch-latest-release.outputs.LATEST_VERSION }}
3636
incremental_level=${{ inputs.version_incremental_level }}
3737
next_version=$(semver ${latest_version} -i ${incremental_level})
38-
echo "::set-output name=NEXT_VERSION::${next_version}"
38+
echo "NEXT_VERSION=${next_version}" >> $GITHUB_OUTPUT
3939
- name: Create Release Branch
4040
run: |
4141
git switch -c release/${{ steps.create-next-version.outputs.NEXT_VERSION }}

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
name: macOS
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3333
- name: Select Xcode version
3434
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app; swift -version
3535
- name: Get Swift Version
3636
id: get-swift-version
3737
run: |
38-
echo "::set-output name=version::$(swift -version | head -n 1 | sed s/,// )"
38+
echo "version=$(swift -version | head -n 1 | sed s/,// )" >> $GITHUB_OUTPUT
3939
- name: Cache DevTools
40-
uses: actions/cache@v2
40+
uses: actions/cache@v3
4141
with:
4242
path: |
4343
./DevTools/.build/release
@@ -51,7 +51,7 @@ jobs:
5151
make dev
5252
fi
5353
- name: Cache dependencies
54-
uses: actions/cache@v2
54+
uses: actions/cache@v3
5555
with:
5656
path: |
5757
.build/artifacts
@@ -83,14 +83,14 @@ jobs:
8383
name: Linux
8484
steps:
8585
- name: Checkout
86-
uses: actions/checkout@v2
86+
uses: actions/checkout@v3
8787
- name: Get Swift Version
8888
id: get-swift-version
8989
run: |
90-
echo "::set-output name=version::$(swift -version | head -n 1 | sed s/,// )"
90+
echo "version=$(swift -version | head -n 1 | sed s/,// )" >> $GITHUB_OUTPUT
9191
shell: bash
9292
- name: Cache DevTools
93-
uses: actions/cache@v2
93+
uses: actions/cache@v3
9494
with:
9595
path: |
9696
./DevTools/.build/release
@@ -109,7 +109,7 @@ jobs:
109109
make dev
110110
fi
111111
- name: Cache dependencies
112-
uses: actions/cache@v2
112+
uses: actions/cache@v3
113113
with:
114114
path: |
115115
.build/artifacts

0 commit comments

Comments
 (0)