Skip to content

Commit

Permalink
Prevent triggering workflows twice
Browse files Browse the repository at this point in the history
Workflows are currently triggered twice if the branch
being PR'd is in the repo. Limit to main branch only.
  • Loading branch information
andreasWallnerIFX committed Apr 9, 2024
1 parent c874814 commit 8a522e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/check-and-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Check and Lint

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

env:
CARGO_TERM_COLOR: always
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Test

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

env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 8a522e8

Please sign in to comment.