Skip to content

Commit

Permalink
Configure GHA workflows for the 2-x-stable branch
Browse files Browse the repository at this point in the history
It seems that the configurations

    on:
      - pull_request

and

    on:
      pull_request:

will only trigger a workflow run when the target branch is the repo's
default branch (but I could not find any documentation for it). Let's
see if an explicit branch name will make workflows run for our PRs.
  • Loading branch information
bquorning committed Jun 2, 2024
1 parent cd279a8 commit 9efc2ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CodeSpell
on:
- pull_request
pull_request:
branches: 2-x-stable
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Danger
on:
- pull_request
pull_request:
branches: 2-x-stable
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Linting
on:
- pull_request
pull_request:
branches: 2-x-stable
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
pull_request:
branches: 2-x-stable
push:
branches:
- master
branches: 2-x-stable

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
push:
branches: master
branches: 2-x-stable
paths: lib/rubocop/rspec/version.rb
jobs:
publish:
Expand Down

0 comments on commit 9efc2ad

Please sign in to comment.