File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Release Staging
33on :
44 pull_request :
55 types : [ closed ]
6+ workflow_dispatch :
7+ inputs :
8+ version :
9+ description : ' Selenium version to release'
10+ required : true
611
712env :
813 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1116jobs :
1217 github-release :
1318 if : >
14- github.event.pull_request.merged == true &&
19+ ( github.event.pull_request.merged == true &&
1520 github.repository_owner == 'seleniumhq' &&
16- startsWith(github.event.pull_request.head.ref, 'release-preparation-')
21+ startsWith(github.event.pull_request.head.ref, 'release-preparation-')) ||
22+ (github.event_name == 'workflow_dispatch' &&
23+ github.event.inputs.version != '' &&
24+ github.repository_owner == 'seleniumhq')
1725 runs-on : ubuntu-latest
1826 steps :
1927 - name : Checkout repo
2028 uses : actions/checkout@v4
2129 - name : Extract version from branch name
22- id : extract_version
30+ if : github.event.pull_request.merged == true
2331 run : |
2432 VERSION=$(echo $BRANCH_NAME | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
2533 echo "VERSION=$VERSION" >> $GITHUB_ENV
34+ - name : Extract version from workflow input
35+ if : github.event_name == 'workflow_dispatch'
36+ run : |
37+ VERSION=${{ inputs.version }}
38+ echo "VERSION=$VERSION" >> $GITHUB_ENV
2639 - name : Prep git
2740 run : |
2841 git config --local user.email "selenium-ci@users.noreply.github.com"
You can’t perform that action at this time.
0 commit comments