Skip to content

Commit 86a85b1

Browse files
authored
Fix GitHub actions warnings (#132)
* Replace deprecated GitHub actions commands * Update checkout action * Update setup-go action
1 parent b79dd32 commit 86a85b1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/check-dependencies-task.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3838

3939
- name: Install licensed
4040
uses: jonabc/setup-licensed@v1
@@ -43,7 +43,7 @@ jobs:
4343
version: 3.x
4444

4545
- name: Install Go
46-
uses: actions/setup-go@v2
46+
uses: actions/setup-go@v3
4747
with:
4848
go-version: ${{ env.GO_VERSION }}
4949

@@ -80,7 +80,7 @@ jobs:
8080

8181
steps:
8282
- name: Checkout repository
83-
uses: actions/checkout@v2
83+
uses: actions/checkout@v3
8484

8585
- name: Install licensed
8686
uses: jonabc/setup-licensed@v1
@@ -89,7 +89,7 @@ jobs:
8989
version: 3.x
9090

9191
- name: Install Go
92-
uses: actions/setup-go@v2
92+
uses: actions/setup-go@v3
9393
with:
9494
go-version: ${{ env.GO_VERSION }}
9595

.github/workflows/release-go-task.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525
with:
2626
fetch-depth: 0
2727

@@ -55,7 +55,7 @@ jobs:
5555

5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v2
58+
uses: actions/checkout@v3
5959

6060
- name: Download artifacts
6161
uses: actions/download-artifact@v2
@@ -142,7 +142,7 @@ jobs:
142142
run: |
143143
wget -q -P /tmp https://github.com/fsaintjacques/semver-tool/archive/3.0.0.zip
144144
unzip -p /tmp/3.0.0.zip semver-tool-3.0.0/src/semver >/tmp/semver && chmod +x /tmp/semver
145-
if [[ "$(/tmp/semver get prerel "${GITHUB_REF/refs\/tags\//}")" ]]; then echo "::set-output name=IS_PRE::true"; fi
145+
if [[ "$(/tmp/semver get prerel "${GITHUB_REF/refs\/tags\//}")" ]]; then echo "IS_PRE=true" >> $GITHUB_OUTPUT; fi
146146
147147
- name: Create Github Release and upload artifacts
148148
uses: ncipollo/release-action@v1

.github/workflows/test-go-task.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
RESULT="false"
5252
fi
5353
54-
echo "::set-output name=result::$RESULT"
54+
echo "result=$RESULT" >> $GITHUB_OUTPUT
5555
5656
test:
5757
name: test (${{ matrix.module.path }} - ${{ matrix.operating-system }})
@@ -75,10 +75,10 @@ jobs:
7575

7676
steps:
7777
- name: Checkout repository
78-
uses: actions/checkout@v2
78+
uses: actions/checkout@v3
7979

8080
- name: Install Go
81-
uses: actions/setup-go@v2
81+
uses: actions/setup-go@v3
8282
with:
8383
go-version: ${{ env.GO_VERSION }}
8484

0 commit comments

Comments
 (0)