diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 15c187f13ebdc..ef4f2a30aa9cb 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -50,10 +50,10 @@ jobs: # run: git reset HEAD~1 - name: Update everything including early release CDP if: ${{ github.event.inputs.chrome_channel == 'early-stable' }} - run: ./go all:prepare['Beta'] + run: ./go all:prepare[${{ github.event.inputs.version }},Beta] - name: Update everything including released CDP if: ${{ github.event.inputs.chrome_channel == 'stable' }} - run: ./go "all:prepare[Stable]" + run: ./go "all:prepare[${{ github.event.inputs.version }},Stable]" - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: diff --git a/Rakefile b/Rakefile index d27f5e10363eb..48d856bc89450 100644 --- a/Rakefile +++ b/Rakefile @@ -1078,8 +1078,9 @@ namespace :all do end desc 'Update everything in preparation for a release' - task :prepare, [:channel] do |_task, arguments| + task :prepare, [:version, :channel] do |_task, arguments| chrome_channel = arguments[:channel] || 'Stable' + version = arguments[:version] args = Array(chrome_channel) ? ['--', "--chrome_channel=#{chrome_channel.capitalize}"] : [] Bazel.execute('run', args, '//scripts:pinned_browsers') commit!('Update pinned browser versions', ['common/repositories.bzl']) @@ -1109,7 +1110,7 @@ namespace :all do commit!('Update authors file', ['AUTHORS']) # Note that this does not include Rust version changes that are handled in separate rake:version task - Rake::Task['all:version'].invoke + Rake::Task['all:version'].invoke(version) commit!("FIX CHANGELOGS BEFORE MERGING!\n\nUpdate versions and change logs to release Selenium #{java_version}", ['dotnet/CHANGELOG', 'dotnet/selenium-dotnet-version.bzl',