|
| 1 | +name: Release Preparation |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + version: |
| 7 | + description: 'Selenium version to release' |
| 8 | + required: true |
| 9 | + chrome_channel: |
| 10 | + description: 'Chrome Channel for CDP' |
| 11 | + required: true |
| 12 | + type: choice |
| 13 | + default: "stable" |
| 14 | + options: |
| 15 | + - stable |
| 16 | + - early-stable |
| 17 | + |
| 18 | +jobs: |
| 19 | + update-rust: |
| 20 | + name: Update Rust Version |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - name: "Checkout repo" |
| 24 | + uses: actions/checkout@v4 |
| 25 | + with: |
| 26 | + persist-credentials: false |
| 27 | + fetch-depth: 0 |
| 28 | + fetch-tags: true |
| 29 | + - name: "Prep git" |
| 30 | + run: | |
| 31 | + git config --local user.email "[email protected]" |
| 32 | + git config --local user.name "Selenium CI Bot" |
| 33 | + if git rev-parse --verify release-${{ github.event.inputs.version }} >/dev/null 2>&1; then |
| 34 | + git branch -D release-${{ github.event.inputs.version }} |
| 35 | + fi |
| 36 | + git checkout -b release-${{ github.event.inputs.version }} |
| 37 | + - name: Update Rust Version |
| 38 | + run: | |
| 39 | + ./go rust:version |
| 40 | + ./go rust:version:commit |
| 41 | + - name: Push changes |
| 42 | + uses: ad-m/github-push-action@master |
| 43 | + with: |
| 44 | + github_token: ${{ secrets.SELENIUM_CI_TOKEN }} |
| 45 | + branch: release-${{ github.event.inputs.version }} |
| 46 | + force: true |
| 47 | + |
| 48 | + selenium-manager: |
| 49 | + name: Release Selenium Manager |
| 50 | + needs: update-rust |
| 51 | + uses: ./.github/workflows/ci-rust.yml |
| 52 | + with: |
| 53 | + release: true |
| 54 | + branch: release-${{ github.event.inputs.version }} |
| 55 | + secrets: |
| 56 | + SELENIUM_CI_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} |
| 57 | + |
| 58 | + update-files: |
| 59 | + name: Update Files |
| 60 | + runs-on: ubuntu-latest |
| 61 | + needs: selenium-manager |
| 62 | + 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 |
0 commit comments