Skip to content

Commit 187f11a

Browse files
committed
fix auto release
1 parent 7563437 commit 187f11a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python setup.py sdist bdist_wheel
5151
5252
- name: Publish distribution to PyPI
53-
if: github.event_name == 'push' && env.BRANCH == 'master' && steps.release_info.outputs.version != 'unreleased'
53+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release_info.outputs.version != 'unreleased'
5454
uses: pypa/gh-action-pypi-publish@master
5555
with:
5656
password: ${{ secrets.pypi_password }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
echo "::set-output name=changelog::$changelog"
2727
2828
- name: create release
29-
if: github.event_name == 'push' && env.BRANCH == 'master' && steps.release_info.outputs.version != 'unreleased'
29+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release_info.outputs.version != 'unreleased'
3030
uses: actions/create-release@v1
3131
id: create_release
3232
env:

0 commit comments

Comments
 (0)