Skip to content

Commit 8dd78ad

Browse files
committed
fix: update release.yml
1 parent a3541b5 commit 8dd78ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
build-clang-format-wheels:
3131
name: "clang-format :: ${{ matrix.os }} :: ${{ matrix.platform }}-${{ matrix.arch }}"
3232
runs-on: ${{ matrix.os }}
33-
33+
if: github.event_name == 'workflow_dispatch' # only build on manual trigger to save time and resources
3434
strategy:
3535
matrix:
3636
# emulated linux: generate 4 matrix combinations with qemu on ubuntu:
@@ -150,7 +150,7 @@ jobs:
150150
build-clang-tidy-wheels:
151151
name: "clang-tidy :: ${{ matrix.os }} :: ${{ matrix.platform }}-${{ matrix.arch }}"
152152
runs-on: ${{ matrix.os }}
153-
153+
if: github.event_name == 'workflow_dispatch' # only build on manual trigger to save time and resources
154154
strategy:
155155
matrix:
156156
include:
@@ -466,7 +466,7 @@ jobs:
466466
467467
- name: Create draft release
468468
uses: softprops/action-gh-release@v2
469-
if: github.event_name == 'workflow_dispatch'
469+
if: github.event_name == 'workflow_dispatch' # only create release on manual trigger
470470
with:
471471
draft: true
472472
files: release-assets/*

0 commit comments

Comments
 (0)