Skip to content

Commit ec30ced

Browse files
authored
Merge pull request #1855 from ehuss/fix-cache-key
Fix CI caching
2 parents 81e6c23 + d201db3 commit ec30ced

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
env:
99
# renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust
1010
RUST_VERSION: 1.95.0
11+
ZOLA_VERSION: 29540e9897dbe8aca388b13f7bdf615985f6ca2c
1112

1213
jobs:
1314
lint:
@@ -37,8 +38,10 @@ jobs:
3738

3839
- run: rustup override set ${{ env.RUST_VERSION }}
3940
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
41+
with:
42+
env-vars: CARGO RUST ZOLA_VERSION
4043
- name: Install Zola
41-
run: cargo install --locked --git https://github.com/getzola/zola --rev 29540e9897dbe8aca388b13f7bdf615985f6ca2c
44+
run: cargo install --locked --git https://github.com/getzola/zola --rev ${{ env.ZOLA_VERSION }}
4245

4346
- run: zola build
4447
- run: cp CNAME ./public/

.github/workflows/snapshot_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
env:
66
# renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust
77
RUST_VERSION: 1.95.0
8+
ZOLA_VERSION: 29540e9897dbe8aca388b13f7bdf615985f6ca2c
89

910
jobs:
1011
snapshot-tests:
@@ -14,8 +15,10 @@ jobs:
1415
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1516
- run: rustup override set ${{ env.RUST_VERSION }}
1617
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
18+
with:
19+
env-vars: CARGO RUST ZOLA_VERSION
1720
- name: Install Zola
18-
run: cargo install --locked --git https://github.com/getzola/zola --rev 29540e9897dbe8aca388b13f7bdf615985f6ca2c
21+
run: cargo install --locked --git https://github.com/getzola/zola --rev ${{ env.ZOLA_VERSION }}
1922

2023
- run: git fetch --depth 2
2124
- run: git checkout origin/main

0 commit comments

Comments
 (0)