Skip to content

Commit

Permalink
CI: prevent duplicate triggering of build workflow
Browse files Browse the repository at this point in the history
Builds are triggered on pushes to the repo and when a PR is updated.
If a PR from a branch in the same repo is pushed to, both triggers
activate, starting each job twice.
This change guards against this case.
  • Loading branch information
DeinAlptraum committed Aug 26, 2024
1 parent 5ecb46d commit 7c7298b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build_windows:
name: Build for Windows
Expand Down

0 comments on commit 7c7298b

Please sign in to comment.