Skip to content

Commit 9a85973

Browse files
committed
fix(ci): skip sync master on docs hotfix
1 parent 905cbad commit 9a85973

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ name: Publish to PyPi
3030
# 2. Use the version released under Releases e.g. v1.13.0
3131
#
3232

33+
#
34+
# === Documentation hotfix ===
35+
#
36+
# 1. Trigger "Publish to PyPi" workflow manually: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
37+
# 2. Use the latest version released under Releases e.g. v1.21.1
38+
# 3. Set `Build and publish docs only` field to `true`
39+
40+
3341
on:
3442
release:
3543
types: [published]
@@ -121,9 +129,9 @@ jobs:
121129
sync_master:
122130
needs: release
123131
runs-on: ubuntu-latest
132+
if: ${{ github.event.inputs.publish_docs_only == false }}
124133
steps:
125134
- uses: actions/checkout@v2
126-
if: ${{ github.event.inputs.publish_docs_only == false }}
127135
- name: Sync master from detached head
128136
# If version matches CHANGELOG and pyproject.toml
129137
# If it passes all checks, successfully releases to test and prod

0 commit comments

Comments
 (0)