Skip to content

Commit af360d8

Browse files
authored
Add support for bypassing static build cache on PRs. (netdata#14646)
1 parent 1270f43 commit af360d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ jobs:
118118
run: |
119119
sed -i 's/^RELEASE_CHANNEL="nightly" *#/RELEASE_CHANNEL="stable" #/' netdata-installer.sh packaging/makeself/install-or-update.sh
120120
- name: Get Cache Key
121+
if: github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache')
121122
id: cache-key
122-
run: .github/scripts/get-static-cache-key.sh ${{ matrix.arch }}
123+
run: .github/scripts/get-static-cache-key.sh ${{ matrix.arch }} "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache') }}"
123124
- name: Cache
125+
if: github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'run-ci/no-cache')
124126
id: cache
125127
uses: actions/cache@v3
126128
with:
@@ -135,7 +137,7 @@ jobs:
135137
uses: nick-fields/retry@v2
136138
with:
137139
timeout_minutes: 180
138-
retries: 3
140+
max_attempts: 3
139141
command: .github/scripts/build-static.sh ${{ matrix.arch }}
140142
- name: Store
141143
id: store

0 commit comments

Comments
 (0)