Skip to content

Commit 70a5627

Browse files
committed
update github workflow actions/checkout version to v4
1 parent d366130 commit 70a5627

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ${{ matrix.os }}
4747
steps:
4848
# Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050
- uses: dtolnay/rust-toolchain@stable
5151
with:
5252
targets: ${{ matrix.target }}

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: use gnu dockerfile
1717
run: cp docker/gnu_dockerfile Dockerfile
1818
- name: Set up QEMU

.github/workflows/mdbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- uses: dorny/paths-filter@v2
1919
id: changes
2020
with:

.github/workflows/pre_build_docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: use pre dockerfile
1616
run: cp docker/pre_dockerfile Dockerfile
1717
- name: Set up QEMU
@@ -37,4 +37,4 @@ jobs:
3737
push: true
3838
tags: |
3939
${{ secrets.DOCKERHUB_USERNAME }}/rnacos:pre-test
40-
labels: ${{ steps.meta.outputs.labels }}
40+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/pre_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ${{ matrix.os }}
4949
steps:
5050
# Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5252
- uses: dtolnay/rust-toolchain@stable
5353
with:
5454
targets: ${{ matrix.target }}
@@ -100,7 +100,7 @@ jobs:
100100
echo ${{ matrix.name }}
101101
echo ${GITHUB_REF#refs/*/}
102102
- name: Upload binary artifacts
103-
uses: actions/upload-artifact@v3
103+
uses: actions/upload-artifact@v4
104104
with:
105105
name: binaries
106106
path: |
@@ -124,7 +124,7 @@ jobs:
124124
RUSTUP_HOME: /root/.rustup
125125
CARGO_HOME: /root/.cargo
126126
steps:
127-
- uses: actions/checkout@v3
127+
- uses: actions/checkout@v4
128128
- run: rustup target add --toolchain stable ${{ matrix.platform.target }}
129129
if: matrix.platform.target != 'powerpc64le-unknown-linux-musl' && matrix.platform.target != 's390x-unknown-linux-gnu'
130130
- name: Build
@@ -137,7 +137,7 @@ jobs:
137137
echo ${{ matrix.platform.name }}
138138
echo ${GITHUB_REF#refs/*/}
139139
- name: Upload binary artifacts
140-
uses: actions/upload-artifact@v3
140+
uses: actions/upload-artifact@v4
141141
with:
142142
name: binaries
143143
path: |

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ${{ matrix.os }}
5252
steps:
5353
# Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml
54-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5555
- uses: dtolnay/rust-toolchain@stable
5656
with:
5757
targets: ${{ matrix.target }}
@@ -99,7 +99,7 @@ jobs:
9999
tar czvf ../../../${{ matrix.name }} rnacos .env
100100
cd -
101101
- name: Upload binary artifacts
102-
uses: actions/upload-artifact@v3
102+
uses: actions/upload-artifact@v4
103103
with:
104104
name: binaries
105105
path: |
@@ -123,7 +123,7 @@ jobs:
123123
RUSTUP_HOME: /root/.rustup
124124
CARGO_HOME: /root/.cargo
125125
steps:
126-
- uses: actions/checkout@v3
126+
- uses: actions/checkout@v4
127127
- run: rustup target add --toolchain stable ${{ matrix.platform.target }}
128128
if: matrix.platform.target != 'powerpc64le-unknown-linux-musl' && matrix.platform.target != 's390x-unknown-linux-gnu'
129129
- name: Build
@@ -134,7 +134,7 @@ jobs:
134134
cp doc/conf/.env.example target/${{ matrix.platform.target }}/release/.env
135135
tar czvf ${{ matrix.platform.name }} -C target/${{ matrix.platform.target }}/release rnacos .env
136136
- name: Upload binary artifacts
137-
uses: actions/upload-artifact@v3
137+
uses: actions/upload-artifact@v4
138138
with:
139139
name: binaries
140140
path: |
@@ -146,7 +146,7 @@ jobs:
146146
if: "startsWith(github.ref, 'refs/tags/')"
147147
needs: [ build ]
148148
steps:
149-
- uses: actions/checkout@v3
149+
- uses: actions/checkout@v4
150150
- uses: dtolnay/rust-toolchain@stable
151151
- name: cargo login
152152
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
@@ -164,7 +164,7 @@ jobs:
164164
if: "startsWith(github.ref, 'refs/tags/')"
165165
needs: [ build, build-musl ]
166166
steps:
167-
- uses: actions/download-artifact@v3
167+
- uses: actions/download-artifact@v4
168168
with:
169169
name: binaries
170170
# 暂时移除签名(生成的文件比较多)

0 commit comments

Comments
 (0)