@@ -25,24 +25,23 @@ jobs:
2525 with :
2626 persist-credentials : false
2727 fetch-depth : 0
28- fetch-tags : true
2928 - name : " Prep git"
3029 run : |
3130 git config --local user.email "[email protected] " 3231 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 }}
32+ if git rev-parse --verify rust- release-${{ github.event.inputs.version }} >/dev/null 2>&1; then
33+ git branch -D rust- release-${{ github.event.inputs.version }}
3534 fi
36- git checkout -b release-${{ github.event.inputs.version }}
35+ git checkout -b rust- release-${{ github.event.inputs.version }}
3736 - name : Update Rust Version
38- run : |
39- ./go rust:version[${{ github.event.inputs.version }}]
40- ./go rust: version:commit
37+ run : ./go rust:version ${{ github.event.inputs.version }}
38+ - name : Commit Rust updates
39+ run : git commit -m "update selenium manager version and rust changelog"
4140 - name : Push changes
4241 uses : ad-m/github-push-action@master
4342 with :
4443 github_token : ${{ secrets.SELENIUM_CI_TOKEN }}
45- branch : release-${{ github.event.inputs.version }}
44+ branch : rust- release-${{ github.event.inputs.version }}
4645 force : true
4746
4847 selenium-manager :
@@ -51,10 +50,23 @@ jobs:
5150 uses : ./.github/workflows/ci-rust.yml
5251 with :
5352 release : true
54- branch : release-${{ github.event.inputs.version }}
53+ branch : rust- release-${{ github.event.inputs.version }}
5554 secrets :
5655 SELENIUM_CI_TOKEN : ${{ secrets.SELENIUM_CI_TOKEN }}
5756
57+ cleanup-rust-branch :
58+ name : Cleanup Rust Branch
59+ needs : selenium-manager
60+ runs-on : ubuntu-latest
61+ steps :
62+ - name : " Checkout repo"
63+ uses : actions/checkout@v4
64+ with :
65+ token : ${{ secrets.SELENIUM_CI_TOKEN }}
66+ - name : " Delete rust release branch"
67+ run : |
68+ git push origin --delete rust-release-${{ github.event.inputs.version }}
69+
5870 update-files :
5971 name : Update Files
6072 runs-on : ubuntu-latest
@@ -79,11 +91,11 @@ jobs:
7991 git config --local user.email "[email protected] " 8092 git config --local user.name "Selenium CI Bot"
8193 - name : Update browser versions
82- run : ./go update_browsers[ ${{ github.event.inputs.chrome_channel }}]
94+ run : ./go update_browsers ${{ github.event.inputs.chrome_channel }}
8395 - name : Commit browser updates
8496 run : git commit -m "update pinned browser versions"
8597 - name : Update devtools versions
86- run : ./go all:update_cdp[ ${{ github.event.inputs.chrome_channel }}]
98+ run : ./go all:update_cdp ${{ github.event.inputs.chrome_channel }}
8799 - name : Commit DevTools updates
88100 run : git commit -m "update devtools versions"
89101 - name : Update Selenium Manager versions
99111 - name : Commit Authors updates
100112 run : git commit -m "update authors file"
101113 - name : Bump minor version
102- run : ./go all:version
114+ run : ./go all:version ${{ github.event.inputs.version }}
103115 - name : Commit version updates
104116 run : git commit -m "bump versions in preparation for release"
105117 - name : Update changelog
0 commit comments