Skip to content

Commit 4e2c657

Browse files
dblockclaude
andauthored
Run the test workflow on pushes to master only (#3101)
A pull request from a branch in this repository ran the whole matrix twice for each push, once for the push and once for the pull request, and the two runs competed for the organization's concurrent jobs. Pull requests and pushes to master still run it. Claude-Session: https://claude.ai/code/session_011Gr21mZxB5wmNLhoxT4irk Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2952721 commit 4e2c657

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: test
22

3-
on: [push, pull_request]
3+
# On pushes to master and on pull requests: a branch with a pull request
4+
# would otherwise run the whole matrix twice for each push.
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
49

510
permissions:
611
contents: read

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* [#3096](https://github.com/ruby-grape/grape/pull/3096): Define Grape's callable constants as modules rather than lambdas - [@ericproulx](https://github.com/ericproulx).
1919
* [#3097](https://github.com/ruby-grape/grape/pull/3097): Build param defaults and custom type coercions from frozen objects rather than procs - [@ericproulx](https://github.com/ericproulx).
2020
* [#3098](https://github.com/ruby-grape/grape/pull/3098): Look up the header versioner's vendor pattern once, when it is built - [@ericproulx](https://github.com/ericproulx).
21+
* [#3101](https://github.com/ruby-grape/grape/pull/3101): Run the test workflow on pushes to master only, not twice for a pull request's branch - [@dblock](https://github.com/dblock).
2122
* Your contribution here.
2223

2324
#### Fixes

0 commit comments

Comments
 (0)