Skip to content

Commit 4b364c4

Browse files
committed
Prevent workflow to run everytime
1 parent 0cd4008 commit 4b364c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build_pyinstaller.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Build PyInstaller binaries for Linux (x64, arm64) and Windows (x64, arm64),
22
# verify they run (--help, --version), and test with an EVTX from
33
# https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES (Execution folder).
4+
# Only runs on push/PR when the commit or PR message contains "Release v", or when triggered manually.
45
name: build_pyinstaller
56

67
on:
@@ -49,6 +50,7 @@ jobs:
4950
binary_name: Zircolite.exe
5051
python_version: "3.12"
5152

53+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, 'Release v')) || (github.event_name == 'pull_request' && (contains(github.event.pull_request.title, 'Release v') || contains(github.event.pull_request.body || '', 'Release v')))
5254
runs-on: ${{ matrix.runner }}
5355

5456
steps:

0 commit comments

Comments
 (0)