3737 cache-key : rb-nightly-${{ matrix.gem }}
3838 run : |
3939 export GEM_HOST_API_KEY="Bearer $GITHUB_TOKEN"
40- bazel run //rb:${{ matrix.gem }}-bump-nightly-version ${{ inputs.version }}
41- bazel run //rb:${{ matrix.gem }}-release-nightly
40+ ./go rb:release[nightly]
41+ on-ruby-failure :
42+ name : On Ruby Failure
43+ runs-on : ubuntu-latest
44+ if : ${{ always() && (needs.ruby.result == 'failure' || needs.ruby.result == 'timed_out') }}
45+ needs : ruby
46+ steps :
47+ - uses : actions/checkout@v4
48+ - name : Slack Notification
49+ uses : rtCamp/action-slack-notify@v2
50+ env :
51+ SLACK_ICON_EMOJI : " :rotating_light:"
52+ SLACK_COLOR : ${{ needs.ruby.status }}
53+ SLACK_CHANNEL : selenium-tlc
54+ SLACK_USERNAME : GitHub Workflows
55+ SLACK_TITLE : Nightly Ruby ${{ needs.ruby.result }}
56+ MSG_MINIMAL : actions url
57+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
4258
4359 python :
4460 if : (github.repository_owner == 'seleniumhq') && (inputs.language == 'python' || github.event_name == 'schedule')
@@ -47,13 +63,25 @@ jobs:
4763 with :
4864 name : Nightly Python Release
4965 cache-key : python-nightly
50- run : |
51- ./go "py:version[nightly]"
52- ./go py:build
53- pip install twine
54- twine upload --repository testpypi bazel-bin/py/selenium-4*.whl bazel-bin/py/selenium-4*.tar.gz
66+ run : ./go py:release[nightly]
5567 secrets : inherit
56-
68+ on-python-failure :
69+ name : On Python Failure
70+ runs-on : ubuntu-latest
71+ if : ${{ always() && (needs.python.result == 'failure' || needs.python.result == 'timed_out') }}
72+ needs : python
73+ steps :
74+ - uses : actions/checkout@v4
75+ - name : Slack Notification
76+ uses : rtCamp/action-slack-notify@v2
77+ env :
78+ SLACK_ICON_EMOJI : " :rotating_light:"
79+ SLACK_COLOR : ${{ needs.python.status }}
80+ SLACK_CHANNEL : selenium-tlc
81+ SLACK_USERNAME : GitHub Workflows
82+ SLACK_TITLE : Nightly Python ${{ needs.python.result }}
83+ MSG_MINIMAL : actions url
84+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
5785
5886 java :
5987 if : (github.repository_owner == 'seleniumhq') && (inputs.language == 'java' || github.event_name == 'schedule')
6290 with :
6391 name : Nightly Java Release
6492 cache-key : java-nightly
65- run : |
66- ./go publish-maven-snapshot
93+ run : ./go java:release[nightly]
6794 secrets : inherit
95+ on-java-failure :
96+ name : On Java Failure
97+ runs-on : ubuntu-latest
98+ if : ${{ always() && (needs.java.result == 'failure' || needs.java.result == 'timed_out') }}
99+ needs : java
100+ steps :
101+ - uses : actions/checkout@v4
102+ - name : Slack Notification
103+ uses : rtCamp/action-slack-notify@v2
104+ env :
105+ SLACK_ICON_EMOJI : " :rotating_light:"
106+ SLACK_COLOR : ${{ needs.java.status }}
107+ SLACK_CHANNEL : selenium-tlc
108+ SLACK_USERNAME : GitHub Workflows
109+ SLACK_TITLE : Nightly Java ${{ needs.java.result }}
110+ MSG_MINIMAL : actions url
111+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
68112
69113 dotnet :
70114 if : (github.repository_owner == 'seleniumhq') && (inputs.language == 'dotnet' || github.event_name == 'schedule')
@@ -74,10 +118,25 @@ jobs:
74118 name : Nightly DotNet Release
75119 cache-key : dotnet-nightly
76120 dotnet-version : ' 6.x'
77- run : |
78- ./go "dotnet:version[nightly]"
79- ./go dotnet:release
121+ run : ./go dotnet:release[--stamp,nightly]
80122 secrets : inherit
123+ on-dotnet-failure :
124+ name : On .NET Failure
125+ runs-on : ubuntu-latest
126+ if : ${{ always() && (needs.dotnet.result == 'failure' || needs.dotnet.result == 'timed_out') }}
127+ needs : dotnet
128+ steps :
129+ - uses : actions/checkout@v4
130+ - name : Slack Notification
131+ uses : rtCamp/action-slack-notify@v2
132+ env :
133+ SLACK_ICON_EMOJI : " :rotating_light:"
134+ SLACK_COLOR : ${{ needs.dotnet.status }}
135+ SLACK_CHANNEL : selenium-tlc
136+ SLACK_USERNAME : GitHub Workflows
137+ SLACK_TITLE : Nightly .NET ${{ needs.dotnet.result }}
138+ MSG_MINIMAL : actions url
139+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
81140
82141 grid :
83142 if : (github.repository_owner == 'seleniumhq') && (inputs.language == 'grid' || github.event_name == 'schedule')
@@ -86,10 +145,25 @@ jobs:
86145 with :
87146 name : Nightly Grid Release
88147 cache-key : grid-nightly
89- run : |
90- echo build --stamp >>.bazelrc.local
91- ./go java-release-zip
148+ run : ./go java:package[--config=release]
92149 nightly-release-files : build/dist/*.*
150+ on-grid-failure :
151+ name : On Grid Failure
152+ runs-on : ubuntu-latest
153+ if : ${{ always() && (needs.grid.result == 'failure' || needs.grid.result == 'timed_out') }}
154+ needs : grid
155+ steps :
156+ - uses : actions/checkout@v4
157+ - name : Slack Notification
158+ uses : rtCamp/action-slack-notify@v2
159+ env :
160+ SLACK_ICON_EMOJI : " :rotating_light:"
161+ SLACK_COLOR : ${{ needs.grid.status }}
162+ SLACK_CHANNEL : selenium-tlc
163+ SLACK_USERNAME : GitHub Workflows
164+ SLACK_TITLE : Nightly Grid ${{ needs.grid.result }}
165+ MSG_MINIMAL : actions url
166+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
93167
94168 javascript :
95169 if : (github.repository_owner == 'seleniumhq') && (inputs.language == 'javascript' || github.event_name == 'schedule')
@@ -102,9 +176,25 @@ jobs:
102176 run : |
103177 sed -i 's|https://registry.npmjs.org/|https://npm.pkg.github.com|g' javascript/node/selenium-webdriver/package.json
104178 sed -i 's|"name": "selenium-webdriver"|"name": "@seleniumhq/selenium-webdriver"|g' javascript/node/selenium-webdriver/package.json
105- echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
106- echo "@seleniumhq:registry=https://npm.pkg.github.com" >> .npmrc
107- echo "always-auth=true" >> .npmrc
108- ./go "node:version[nightly]"
109- ./go node:release
179+ echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
180+ echo "@seleniumhq:registry=https://npm.pkg.github.com" >> ~/.npmrc
181+ echo "always-auth=true" >> ~/.npmrc
182+ ./go node:release[--stamp,nightly]
110183 secrets : inherit
184+ on-javascript-failure :
185+ name : On JavaScript Failure
186+ runs-on : ubuntu-latest
187+ if : ${{ always() && (needs.javascript.result == 'failure' || needs.javascript.result == 'timed_out') }}
188+ needs : javascript
189+ steps :
190+ - uses : actions/checkout@v4
191+ - name : Slack Notification
192+ uses : rtCamp/action-slack-notify@v2
193+ env :
194+ SLACK_ICON_EMOJI : " :rotating_light:"
195+ SLACK_COLOR : ${{ needs.javascript.status }}
196+ SLACK_CHANNEL : selenium-tlc
197+ SLACK_USERNAME : GitHub Workflows
198+ SLACK_TITLE : Nightly JavaScript ${{ needs.javascript.result }}
199+ MSG_MINIMAL : actions url
200+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments