Skip to content

Commit 36cba25

Browse files
committed
Update CI actions
Signed-off-by: Gerard Finol <[email protected]>
1 parent 4a83991 commit 36cba25

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

.github/workflows/cibuild.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout sources
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Display Rust version
2727
run: rustc --version
@@ -31,7 +31,7 @@ jobs:
3131
toolchain: stable
3232
default: true
3333
components: rustfmt, clippy
34-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
3535
with:
3636
path: |
3737
~/.cargo/bin/
@@ -64,14 +64,14 @@ jobs:
6464
java-version: 11
6565

6666
- name: Checkout sources
67-
uses: actions/checkout@v2
67+
uses: actions/checkout@v4
6868
- name: Install stable toolchain
6969
uses: actions-rs/toolchain@v1
7070
with:
7171
toolchain: stable
7272
default: true
7373
components: rustfmt, clippy
74-
- uses: actions/cache@v3
74+
- uses: actions/cache@v4
7575
with:
7676
path: |
7777
~/.cargo/bin/
@@ -98,14 +98,14 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: Checkout sources
101-
uses: actions/checkout@v2
101+
uses: actions/checkout@v4
102102
- name: Install stable toolchain
103103
uses: actions-rs/toolchain@v1
104104
with:
105105
toolchain: stable
106106
default: true
107107
components: rustfmt, clippy
108-
- uses: actions/cache@v3
108+
- uses: actions/cache@v4
109109
with:
110110
path: |
111111
~/.cargo/bin/
@@ -128,14 +128,14 @@ jobs:
128128
runs-on: ubuntu-latest
129129
steps:
130130
- name: Checkout sources
131-
uses: actions/checkout@v2
131+
uses: actions/checkout@v4
132132
- name: Install stable toolchain
133133
uses: actions-rs/toolchain@v1
134134
with:
135135
toolchain: stable
136136
default: true
137137
components: rustfmt, clippy
138-
- uses: actions/cache@v3
138+
- uses: actions/cache@v4
139139
with:
140140
path: |
141141
~/.cargo/bin/
@@ -208,7 +208,7 @@ jobs:
208208

209209
steps:
210210
- name: Checkout repository
211-
uses: actions/checkout@v2
211+
uses: actions/checkout@v4
212212
- name: Set release version
213213
# Set release version env in all three os, the commented command only works in linux and mac.
214214
run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"
@@ -224,7 +224,7 @@ jobs:
224224
toolchain: ${{ matrix.rust }}
225225
default: true
226226
target: ${{ matrix.target }}
227-
- uses: actions/cache@v3
227+
- uses: actions/cache@v4
228228
with:
229229
path: |
230230
~/.cargo/bin/
@@ -279,7 +279,7 @@ jobs:
279279
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
280280
fi
281281
- name: Upload pravegactl artifacts
282-
uses: actions/upload-artifact@v2
282+
uses: actions/upload-artifact@v4
283283
with:
284284
name: ${{ env.ASSET }}
285285
path: ${{ env.ASSET }}

.github/workflows/debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout sources
8-
uses: actions/checkout@v2
8+
uses: actions/checkout@v4
99

1010
- name: Cache toolchain
1111
uses: actions/cache@v1

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
generate_documentation:
1010
runs-on: ubuntu-20.04
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

14-
- uses: actions/setup-node@v2
14+
- uses: actions/setup-node@v4
1515
with:
1616
node-version: "16"
1717
# This copy the Nodejs README to the book source

.github/workflows/nodejs_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
- 18
2424
- 20
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727
- name: Install stable toolchain
2828
uses: actions-rs/toolchain@v1
2929
with:
3030
toolchain: stable
3131
default: true
32-
- uses: actions/cache@v3
32+
- uses: actions/cache@v4
3333
with:
3434
path: |
3535
~/.cargo/bin/
@@ -49,7 +49,7 @@ jobs:
4949
sleep 120 && echo "Started standalone"
5050
tail pravega.log
5151
- name: Set up Nodejs
52-
uses: actions/setup-node@v2
52+
uses: actions/setup-node@v4
5353
with:
5454
node-version: ${{ matrix.node_version }}
5555
- name: Install modules
@@ -59,7 +59,7 @@ jobs:
5959
working-directory: ./nodejs
6060
run: npm test
6161
- name: Upload Pravega standalone logs
62-
uses: actions/upload-artifact@v2
62+
uses: actions/upload-artifact@v4
6363
if: always()
6464
with:
6565
name: pravega-standalone-log

.github/workflows/tagPublish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Create Github release page
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
ref: ${{ github.event.release.tag_name }}
1616
- name: Set release version
@@ -27,15 +27,15 @@ jobs:
2727
# Prevent a situation where native build fails and a npm package is uploaded.
2828
needs: [nodejs-github-native]
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
ref: ${{ github.event.release.tag_name }}
3333
- name: Set release version
3434
# Set release version env in all three os, the commented command only works in linux and mac.
3535
run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"
3636
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3737

38-
- uses: actions/setup-node@v2
38+
- uses: actions/setup-node@v4
3939
with:
4040
node-version: '16'
4141
# Url is important! This makes NODE_AUTH_TOKEN accessible to npm publish.
@@ -82,15 +82,15 @@ jobs:
8282
# Would like to have aarch64 support, but actions does not provide these yet.
8383
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
8484
steps:
85-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8686
with:
8787
ref: ${{ github.event.release.tag_name }}
8888
- name: Set release version
8989
# Set release version env in all three os, the commented command only works in linux and mac.
9090
run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"
9191
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
9292

93-
- uses: actions/setup-node@v2
93+
- uses: actions/setup-node@v4
9494
with:
9595
node-version: ${{ matrix.node_version }}
9696
registry-url: 'https://registry.npmjs.org'

0 commit comments

Comments
 (0)