We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 707d86d commit d3e528cCopy full SHA for d3e528c
1 file changed
.github/workflows/python-publish.yml
@@ -3,7 +3,6 @@ name: Upload Python Packages
3
on:
4
push:
5
tags: ['v*']
6
- branches: ['main'] # tag must be reachable from main branch
7
8
jobs:
9
deploy:
@@ -13,6 +12,11 @@ jobs:
13
12
steps:
14
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15
+ - name: Ensure tag commit is on main
16
+ run: |
17
+ git fetch origin main
18
+ git merge-base --is-ancestor $GITHUB_SHA origin/main
19
+
20
- name: Set up Python
21
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 6.2.0
22
with:
0 commit comments