Skip to content

Commit

Permalink
don't run GHA workflows on tag pushes (#6510)
Browse files Browse the repository at this point in the history
Per the branching experiment review we are about to begin in the control
plane huddle.

1. For the rust.yml workflow, only run the `push` mode when pushing to
`main` or any branch matching the glob `rel/**`.
2. For the hakari.yml workflow, apply the same rules. This has the
effect of enabling them for the release branches, and also enabling them
for pull requests that do not target the `main` branch.
  • Loading branch information
iliana authored Sep 4, 2024
1 parent a77c31b commit 6bd835b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/hakari.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
- 'rel/**'
pull_request: {}

name: cargo hakari

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
#
name: Rust

on: [ push, pull_request ]
on:
push:
branches:
- main
- 'rel/**'
pull_request: {}

jobs:
check-style:
Expand Down

0 comments on commit 6bd835b

Please sign in to comment.