Skip to content

Commit f7104d3

Browse files
committed
bugfix in create release action
1 parent a284431 commit f7104d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/create-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ jobs:
5050
PCAPKIT_VERSION: ${{ steps.get_version.outputs.PCAPKIT_VERSION }}
5151
PCAPKIT_PRERELEASE: ${{ steps.get_version.outputs.PCAPKIT_PRERELEASE }}
5252
PCAPKIT_TAG_EXISTS: ${{ steps.check_tag.outputs.exists }}
53-
PCAPKIT_GITHUB_REF: ${{ github.ref }}
5453
PCAPKIT_CONDA_LABEL: ${{ steps.get_version.outputs.PCAPKIT_CONDA_LABEL }}
5554

5655
pypi_github:
5756
name: PyPI & GitHub Release # with Python ${{ matrix.python-version }}
5857
runs-on: ubuntu-latest
5958
needs: [ version_check ]
60-
if: ${{ startsWith(needs.version_check.outputs.PCAPKIT_GITHUB_REF, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
59+
if: ${{ startsWith(github.ref_name, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
6160
# strategy:
6261
# matrix:
6362
# python-version:
@@ -159,7 +158,7 @@ jobs:
159158
name: Conda deployment of package with Python ${{ matrix.python-version }}
160159
runs-on: ubuntu-latest
161160
needs: [ version_check ]
162-
if: ${{ startsWith(needs.version_check.outputs.PCAPKIT_GITHUB_REF, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
161+
if: ${{ startsWith(github.ref_name, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
163162
strategy:
164163
matrix:
165164
python-version: [ "3.8", "3.9", "3.10", "3.11" ] # ignore 3.6/7 for now

0 commit comments

Comments
 (0)