@@ -25,26 +25,24 @@ jobs:
25
25
with :
26
26
persist-credentials : false
27
27
fetch-depth : 0
28
- fetch-tags : true
29
28
- name : " Prep git"
30
29
run : |
31
30
git config --local user.email "[email protected] "
32
31
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 }}
35
34
fi
36
- git checkout -b release-preparation -${{ github.event.inputs.version }}
35
+ git checkout -b rust-release -${{ github.event.inputs.version }}
37
36
- name : Update Rust Version
38
37
run : |
39
38
./go rust:version ${{ github.event.inputs.version }}
40
- ./go rust:changelog
41
39
- name : Commit Rust updates
42
40
run : git commit -m "update selenium manager version and rust changelog"
43
41
- name : Push changes
44
42
uses : ad-m/github-push-action@master
45
43
with :
46
44
github_token : ${{ secrets.SELENIUM_CI_TOKEN }}
47
- branch : release-preparation -${{ github.event.inputs.version }}
45
+ branch : rust-release -${{ github.event.inputs.version }}
48
46
force : true
49
47
50
48
selenium-manager :
@@ -53,10 +51,23 @@ jobs:
53
51
uses : ./.github/workflows/ci-rust.yml
54
52
with :
55
53
release : true
56
- branch : release-preparation -${{ github.event.inputs.version }}
54
+ branch : rust-release -${{ github.event.inputs.version }}
57
55
secrets :
58
56
SELENIUM_CI_TOKEN : ${{ secrets.SELENIUM_CI_TOKEN }}
59
57
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
+
60
71
update-files :
61
72
name : Update Files
62
73
runs-on : ubuntu-latest
68
79
persist-credentials : false
69
80
fetch-depth : 0
70
81
fetch-tags : true
71
- ref : release-preparation-${{ github.event.inputs.version }}
82
+ ref : trunk
72
83
- name : Install Ruby
73
84
uses : ruby/setup-ruby@v1
74
85
with :
0 commit comments