Skip to content

Commit

Permalink
Fix rust workflows running twice in PR (#16)
Browse files Browse the repository at this point in the history
Some workflows were running both on push (to all branches) and on PR
changes, both of which happen when you push to a PR. Now push is
restricted to `main`.
  • Loading branch information
abey79 authored Sep 12, 2024
1 parent 1c5db2c commit 755c3d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Copied from https://github.com/rerun-io/rerun_template
on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [ opened, synchronize ]

name: Link checker

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Copied from https://github.com/rerun-io/rerun_template
on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize]

name: Rust

Expand Down

0 comments on commit 755c3d7

Please sign in to comment.