Skip to content

Commit

Permalink
avoid duplicate actions on pr/push by only running on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
lreiher committed Jul 5, 2024
1 parent a17b5c8 commit 01db5ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/github.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: GitHub

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: GitLab

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:

Expand Down

0 comments on commit 01db5ba

Please sign in to comment.