summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2023-03-03 12:44:17 -0500
committerGitHub <noreply@github.com>2023-03-03 12:44:17 -0500
commitaf360d8b0f31d6fe463928a0f26787861daaa4c2 (patch)
tree32e2a6e6cc8c50bee65bbb15a0c7f79c9b3db325 /.github/workflows
parent1270f43177bbd0a07f448b6b9b1046f26823357b (diff)
Add support for bypassing static build cache on PRs. (#14646)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 36fe70b8dc..425f25f026 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -118,9 +118,11 @@ jobs:
run: |
sed -i 's/^RELEASE_CHANNEL="nightly" *#/RELEASE_CHANNEL="stable" #/' netdata-installer.sh packaging/makeself/install-or-update.sh
- name: Get Cache Key
+ if: github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache')
id: cache-key
- run: .github/scripts/get-static-cache-key.sh ${{ matrix.arch }}
+ run: .github/scripts/get-static-cache-key.sh ${{ matrix.arch }} "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache') }}"
- name: Cache
+ if: github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache')
id: cache
uses: actions/cache@v3
with:
@@ -135,7 +137,7 @@ jobs:
uses: nick-fields/retry@v2
with:
timeout_minutes: 180
- retries: 3
+ max_attempts: 3
command: .github/scripts/build-static.sh ${{ matrix.arch }}
- name: Store
id: store