Skip to content

Commit b44fbb8

Browse files
authored
Merge pull request #4008 from Earlopain/sync-4.0-workflows
Add workflow changes from 4.0 branch
2 parents 93542e6 + 2957868 commit b44fbb8

8 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/cpp-bindings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "*akefile*"
1111
branches:
1212
- main
13+
- ruby-4.0
1314
pull_request:
1415

1516
jobs:

.github/workflows/cruby-bindings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
branches:
1010
- main
1111
pull_request:
12+
branches:
13+
- main
1214

1315
jobs:
1416
test-all:

.github/workflows/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- ruby-4.0
1112
pull_request:
1213

1314
jobs:

.github/workflows/java-wasm-bindings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "*akefile*"
1010
branches:
1111
- main
12+
- ruby-4.0
1213
pull_request:
1314

1415
jobs:

.github/workflows/javascript-bindings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "*akefile*"
1010
branches:
1111
- main
12+
- ruby-4.0
1213
pull_request:
1314

1415
jobs:

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- ruby-4.0
1112
pull_request:
1213

1314
jobs:

.github/workflows/rust-bindings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "*akefile*"
1111
branches:
1212
- main
13+
- ruby-4.0
1314
pull_request:
1415

1516
env:

.github/workflows/sync-ruby.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Sync ruby
22
on:
33
push:
4-
branches: [main]
4+
branches:
5+
- main
6+
- ruby-4.0
57
jobs:
68
sync:
79
name: Sync ruby
@@ -10,6 +12,14 @@ jobs:
1012
steps:
1113
- uses: actions/checkout@v6
1214

15+
- name: Set ruby/ruby target branch
16+
id: target
17+
run: |
18+
case "$GITHUB_REF_NAME" in
19+
main) echo "ref=master" >> "$GITHUB_OUTPUT" ;;
20+
ruby-4.0) echo "ref=ruby_4_0" >> "$GITHUB_OUTPUT" ;;
21+
esac
22+
1323
- name: Create GitHub App token
1424
id: app-token
1525
uses: actions/create-github-app-token@v3
@@ -26,7 +36,7 @@ jobs:
2636
repo: ruby
2737
workflow_file_name: sync_default_gems.yml
2838
github_token: ${{ steps.app-token.outputs.token }}
29-
ref: master
39+
ref: ${{ steps.target.outputs.ref }}
3040
client_payload: |
3141
{"gem":"${{ github.event.repository.name }}","before":"${{ github.event.before }}","after":"${{ github.event.after }}"}
3242
propagate_failure: true

0 commit comments

Comments
 (0)