Skip to content

Commit 9ef1441

Browse files
committed
[build] keep stage release workflow from throwing errors on every PR
1 parent 354d6ea commit 9ef1441

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/stage-release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
(github.event.pull_request.merged == true &&
2020
github.repository_owner == 'seleniumhq' &&
2121
startsWith(github.event.pull_request.head.ref, 'release-preparation-')) ||
22-
(github.event_name == 'workflow_dispatch' &&
23-
github.event.inputs.version != '' &&
22+
(github.event_name == 'workflow_dispatch' &&
23+
github.event.inputs.version != '' &&
2424
github.repository_owner == 'seleniumhq')
2525
runs-on: ubuntu-latest
2626
permissions: write-all
27+
outputs:
28+
version: ${{ env.VERSION }}
2729
steps:
2830
- name: Checkout repo
2931
uses: actions/checkout@v4
@@ -41,10 +43,6 @@ jobs:
4143
run: |
4244
git config --local user.email "[email protected]"
4345
git config --local user.name "Selenium CI Bot"
44-
# - name: Tag Release
45-
# run: |
46-
# git tag selenium-${{ env.VERSION }} || echo "Tag already exists"
47-
# git push origin selenium-${{ env.VERSION }} || echo "Tag already exists remotely"
4846
- name: Setup Java
4947
uses: actions/setup-java@v3
5048
with:
@@ -71,4 +69,5 @@ jobs:
7169
needs: github-release
7270
uses: ./.github/workflows/update-documentation.yml
7371
with:
74-
tag: selenium-${{ needs.github-release.outputs.version }}
72+
version: ${{ needs.github-release.outputs.version }}
73+
sha: ${{ github.sha }}

0 commit comments

Comments
 (0)