Skip to content

Commit a02b661

Browse files
committed
Update GitHub actions to avoid deprecated set-output usage
GitHub actions has deprecated the set-output and save-state commands. These are used in the next build (to set the Git SHA for the current commit) and within actions/cache@v2. This commit updates the next-build job to use environment files and updates actions/cache to v3 Signed-off-by: Angel Misevski <[email protected]>
1 parent 8ec8aaa commit a02b661

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
-
2727
name: Cache go modules
2828
id: cache-mod
29-
uses: actions/cache@v2
29+
uses: actions/cache@v3
3030
with:
3131
path: ~/go/pkg/mod
3232
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/next-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Set output for Git short SHA
3838
id: git-sha
39-
run: echo "::set-output name=sha::$(git rev-parse --short HEAD)"
39+
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
4040

4141
- name: Login to quay.io
4242
uses: docker/login-action@v1
@@ -77,7 +77,7 @@ jobs:
7777
steps:
7878

7979
- name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
80-
uses: actions/cache@v2
80+
uses: actions/cache@v3
8181
id: cache-operator-sdk
8282
with:
8383
path: ~/cache
@@ -97,7 +97,7 @@ jobs:
9797
echo "$HOME/bin" >> $GITHUB_PATH
9898
9999
- name: Cache OPM ${{ env.OPM_VERSION }}
100-
uses: actions/cache@v2
100+
uses: actions/cache@v3
101101
id: cache-opm
102102
with:
103103
path: ~/cache

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
-
2929
name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
id: cache-operator-sdk
3232
with:
3333
path: ~/cache
@@ -49,7 +49,7 @@ jobs:
4949
-
5050
name: Cache go modules
5151
id: cache-mod
52-
uses: actions/cache@v2
52+
uses: actions/cache@v3
5353
with:
5454
path: ~/go/pkg/mod
5555
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
fi
5555
5656
- name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
57-
uses: actions/cache@v2
57+
uses: actions/cache@v3
5858
id: cache-operator-sdk
5959
with:
6060
path: ~/cache
@@ -74,7 +74,7 @@ jobs:
7474
echo "$HOME/bin" >> $GITHUB_PATH
7575
7676
- name: Cache OPM ${{ env.OPM_VERSION }}
77-
uses: actions/cache@v2
77+
uses: actions/cache@v3
7878
id: cache-opm
7979
with:
8080
path: ~/cache

0 commit comments

Comments
 (0)