Skip to content

Commit 1846e6d

Browse files
authored
chore: dont cache on renovate branches (#298)
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 8aa2d95 commit 1846e6d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ jobs:
4141
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
4242
- name: Cache dependencies
4343
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 #v2.7.3
44+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
4445
- name: Configure sccache
4546
run: |
4647
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
4748
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
49+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
4850
- name: Run sccache-cache
4951
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
52+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
5053
- name: Install sqlx
5154
run: cargo install sqlx-cli --no-default-features --features postgres
5255
- name: Run the test sqlx migrations
@@ -66,12 +69,15 @@ jobs:
6669
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
6770
- name: Cache dependencies
6871
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 #v2.7.3
72+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
6973
- name: Configure sccache
7074
run: |
7175
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
7276
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
77+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
7378
- name: Run sccache-cache
7479
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
80+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
7581
- run: |
7682
rustup component add clippy
7783
# Temporarily allowing dead-code, while denying all other warnings
@@ -104,12 +110,15 @@ jobs:
104110
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
105111
- name: Cache dependencies
106112
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 #v2.7.3
113+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
107114
- name: Configure sccache
108115
run: |
109116
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
110117
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
118+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
111119
- name: Run sccache-cache
112120
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
121+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
113122
- name: Install cargo-llvm-cov
114123
uses: taiki-e/install-action@cargo-llvm-cov
115124
- name: Install sqlx
@@ -151,12 +160,15 @@ jobs:
151160
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
152161
- name: Cache dependencies
153162
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 #v2.7.3
163+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
154164
- name: Configure sccache
155165
run: |
156166
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
157167
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
168+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
158169
- name: Run sccache-cache
159170
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
171+
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
160172
- name: Install sqlx
161173
run: cargo install sqlx-cli --no-default-features --features postgres
162174
- name: Run the test sqlx migrations

0 commit comments

Comments
 (0)