Skip to content

Commit 5aa7ce0

Browse files
committed
[build] Adding stable as default parameter
1 parent df7e464 commit 5aa7ce0

File tree

2 files changed

+56
-51
lines changed

2 files changed

+56
-51
lines changed

.github/workflows/pre-release.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
needs: update-rust
5151
uses: ./.github/workflows/ci-rust.yml
5252
with:
53-
release: true
54-
branch: release-${{ github.event.inputs.version }}
53+
release: true
54+
branch: release-${{ github.event.inputs.version }}
5555
secrets:
5656
SELENIUM_CI_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
5757

@@ -60,51 +60,51 @@ jobs:
6060
runs-on: ubuntu-latest
6161
needs: selenium-manager
6262
steps:
63-
- name: "Checkout project"
64-
uses: actions/checkout@v4
65-
with:
66-
persist-credentials: false
67-
fetch-depth: 0
68-
fetch-tags: true
69-
ref: release-${{ github.event.inputs.version }}
70-
- name: Install Ruby
71-
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
72-
with:
73-
ruby-version: '3.1'
74-
- name: "Prep git"
75-
run: |
76-
git config --local user.email "[email protected]"
77-
git config --local user.name "Selenium CI Bot"
78-
- name: Undo rust changelog commit
79-
run: git reset HEAD~1
80-
- name: Update everything including early release CDP
81-
if: ${{ github.event.inputs.chrome_channel == 'early-stable' }}
82-
run: ./go all:prepare['Beta']
83-
- name: Update everything including released CDP
84-
if: ${{ github.event.inputs.chrome_channel == 'stable' }}
85-
run: ./go all:prepare
86-
- name: Create Pull Request
87-
uses: peter-evans/create-pull-request@v5
88-
with:
89-
token: ${{ secrets.SELENIUM_CI_TOKEN }}
90-
author: Selenium CI Bot <[email protected]>
91-
delete-branch: true
92-
title: "[build] Prepare for release of Selenium ${{ github.event.inputs.version }}"
93-
body: |
94-
**Warning: Manually update the changelogs before merging**
95-
96-
This PR:
97-
* Updates Rust version for Selenium Manager release
98-
* Updates Pinned browser version to coincide with new CDP release
99-
* Adds support for new CDP version and removes old CDP version
100-
* Selenium Manager references the new Selenium Manager release
101-
* Updates Maven Dependencies
102-
* Adds new authors to authors file
103-
* Updates all versions for all bindings
104-
* Generates *rough* change logs for each bindings (please tidy them up before merging this)
105-
106-
- Auto-generated by [create-pull-request][1]
107-
108-
[1]: https://github.com/peter-evans/create-pull-request
109-
labels: C-build
110-
draft: true
63+
- name: "Checkout project"
64+
uses: actions/checkout@v4
65+
with:
66+
persist-credentials: false
67+
fetch-depth: 0
68+
fetch-tags: true
69+
ref: release-${{ github.event.inputs.version }}
70+
- name: Install Ruby
71+
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
72+
with:
73+
ruby-version: '3.1'
74+
- name: "Prep git"
75+
run: |
76+
git config --local user.email "[email protected]"
77+
git config --local user.name "Selenium CI Bot"
78+
- name: Undo rust changelog commit
79+
run: git reset HEAD~1
80+
- name: Update everything including early release CDP
81+
if: ${{ github.event.inputs.chrome_channel == 'early-stable' }}
82+
run: ./go all:prepare['Beta']
83+
- name: Update everything including released CDP
84+
if: ${{ github.event.inputs.chrome_channel == 'stable' }}
85+
run: ./go "all:prepare[Stable]"
86+
- name: Create Pull Request
87+
uses: peter-evans/create-pull-request@v5
88+
with:
89+
token: ${{ secrets.SELENIUM_CI_TOKEN }}
90+
author: Selenium CI Bot <[email protected]>
91+
delete-branch: true
92+
title: "[build] Prepare for release of Selenium ${{ github.event.inputs.version }}"
93+
body: |
94+
**Warning: Manually update the changelogs before merging**
95+
96+
This PR:
97+
* Updates Rust version for Selenium Manager release
98+
* Updates Pinned browser version to coincide with new CDP release
99+
* Adds support for new CDP version and removes old CDP version
100+
* Selenium Manager references the new Selenium Manager release
101+
* Updates Maven Dependencies
102+
* Adds new authors to authors file
103+
* Updates all versions for all bindings
104+
* Generates *rough* change logs for each bindings (please tidy them up before merging this)
105+
106+
- Auto-generated by [create-pull-request][1]
107+
108+
[1]: https://github.com/peter-evans/create-pull-request
109+
labels: C-build
110+
draft: true

Rakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,12 @@ namespace :all do
10421042

10431043
desc 'Update everything in preparation for a release'
10441044
task :prepare, [:channel] do |_task, arguments|
1045-
args = Array(arguments[:channel]) ? ['--', "--chrome_channel=#{arguments[:channel].capitalize}"] : []
1045+
chrome_channel = if arguments[:channel].nil?
1046+
'Stable'
1047+
else
1048+
arguments[:channel]
1049+
end
1050+
args = Array(chrome_channel) ? ['--', "--chrome_channel=#{chrome_channel.capitalize}"] : []
10461051
Bazel.execute('run', args, '//scripts:pinned_browsers')
10471052
commit!('Update pinned browser versions', ['common/repositories.bzl'])
10481053

0 commit comments

Comments
 (0)