From 755c3d7a249a5bd8d3425b17f445cbe2fe4ec5f1 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler <49431240+abey79@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:11:54 +0200 Subject: [PATCH] Fix rust workflows running twice in PR (#16) 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`. --- .github/workflows/links.yml | 7 ++++++- .github/workflows/rust.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 8bb984c..aeb663d 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 81daebd..216e4d2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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