Skip to content

Commit f5b7b10

Browse files
authored
ci: Run nightly build without cache (#7235)
1 parent b04a6d4 commit f5b7b10

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
commit:
1212
description: If the commit you want to test isn't the head of a branch, provide its SHA here
1313
required: false
14+
schedule:
15+
# Run every day at midnight (without cache)
16+
- cron: '0 0 * * *'
1417

1518
# Cancel in progress workflows on pull_requests.
1619
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -141,7 +144,7 @@ jobs:
141144
has_gitflow_label:
142145
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
143146
force_skip_cache:
144-
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
147+
${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ')) }}
145148

146149
job_install_deps:
147150
name: Install Dependencies
@@ -205,9 +208,8 @@ jobs:
205208
- name: NX cache
206209
uses: actions/cache@v3
207210
# Disable cache when:
208-
# - on develop
209211
# - on release branches
210-
# - when PR has `ci-skip-cache` label
212+
# - when PR has `ci-skip-cache` label or on nightly builds
211213
if: |
212214
needs.job_get_metadata.outputs.is_release == 'false' &&
213215
needs.job_get_metadata.outputs.force_skip_cache == 'false'

0 commit comments

Comments
 (0)