Skip to content

Commit 01bf2e9

Browse files
committed
Also trigger the runs on changes to the workflows.
1 parent 19bcacb commit 01bf2e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on:
22
push:
33
branches:
44
- main
5+
paths:
6+
- .github/workflows/main.yml
57

68
name: Main
79
permissions:

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
on:
22
workflow_dispatch:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- .github/workflows/release.yml
38

49
name: Release
510

@@ -36,6 +41,7 @@ jobs:
3641

3742
release:
3843
name: Release
44+
if: github.event_name == 'workflow_dispatch'
3945
runs-on: windows-2025-vs2026
4046
needs: build
4147

0 commit comments

Comments
 (0)