@@ -25,26 +25,24 @@ 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-preparation -${{ github.event.inputs.version }} >/dev/null 2>&1; then
34- git branch -D release-preparation -${{ 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-preparation -${{ github.event.inputs.version }}
35+ git checkout -b rust-release -${{ github.event.inputs.version }}
3736 - name : Update Rust Version
3837 run : |
3938 ./go rust:version ${{ github.event.inputs.version }}
40- ./go rust:changelog
4139 - name : Commit Rust updates
4240 run : git commit -m "update selenium manager version and rust changelog"
4341 - name : Push changes
4442 uses : ad-m/github-push-action@master
4543 with :
4644 github_token : ${{ secrets.SELENIUM_CI_TOKEN }}
47- branch : release-preparation -${{ github.event.inputs.version }}
45+ branch : rust-release -${{ github.event.inputs.version }}
4846 force : true
4947
5048 selenium-manager :
@@ -53,10 +51,23 @@ jobs:
5351 uses : ./.github/workflows/ci-rust.yml
5452 with :
5553 release : true
56- branch : release-preparation -${{ github.event.inputs.version }}
54+ branch : rust-release -${{ github.event.inputs.version }}
5755 secrets :
5856 SELENIUM_CI_TOKEN : ${{ secrets.SELENIUM_CI_TOKEN }}
5957
58+ cleanup-rust-branch :
59+ name : Cleanup Rust Branch
60+ needs : selenium-manager
61+ runs-on : ubuntu-latest
62+ steps :
63+ - name : " Checkout repo"
64+ uses : actions/checkout@v4
65+ with :
66+ token : ${{ secrets.SELENIUM_CI_TOKEN }}
67+ - name : " Delete rust release branch"
68+ run : |
69+ git push origin --delete rust-release-${{ github.event.inputs.version }}
70+
6071 update-files :
6172 name : Update Files
6273 runs-on : ubuntu-latest
6879 persist-credentials : false
6980 fetch-depth : 0
7081 fetch-tags : true
71- ref : release-preparation-${{ github.event.inputs.version }}
82+ ref : trunk
7283 - name : Install Ruby
7384 uses : ruby/setup-ruby@v1
7485 with :
0 commit comments