Skip to content

Commit

Permalink
ci: Try to mimic all steps (#21249)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Feb 13, 2025
1 parent a1a9061 commit 81bd36d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:

- name: Parse the tag to find the major version of Polars
id: version
if: github.event_name == 'repository_dispatch'
if: github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
shell: bash
run: |
tag="${{ github.event.client_payload.tag }}"
tag="${{ github.event.inputs.polars_version || github.event.client_payload.tag }}"
regex="py-([0-9]+)\.[0-9]+\.[0-9]+.*"
[[ $tag =~ $regex ]]
version=${BASH_REMATCH[1]}
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:

# Build global docs _after_ this workflow to avoid contention on the gh-pages branch
- name: Trigger global docs workflow
if: github.event_name == 'repository_dispatch'
if: github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
uses: peter-evans/repository-dispatch@v3
with:
event-type: python-release-docs
Expand Down

0 comments on commit 81bd36d

Please sign in to comment.