Skip to content

Commit a284431

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ 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 }}
5354
PCAPKIT_CONDA_LABEL: ${{ steps.get_version.outputs.PCAPKIT_CONDA_LABEL }}
5455

5556
pypi_github:
5657
name: PyPI & GitHub Release # with Python ${{ matrix.python-version }}
5758
runs-on: ubuntu-latest
5859
needs: [ version_check ]
59-
if: ${{ startsWith(github.ref, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
60+
if: ${{ startsWith(needs.version_check.outputs.PCAPKIT_GITHUB_REF, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
6061
# strategy:
6162
# matrix:
6263
# python-version:
@@ -158,7 +159,7 @@ jobs:
158159
name: Conda deployment of package with Python ${{ matrix.python-version }}
159160
runs-on: ubuntu-latest
160161
needs: [ version_check ]
161-
if: ${{ startsWith(github.ref, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
162+
if: ${{ startsWith(needs.version_check.outputs.PCAPKIT_GITHUB_REF, 'v') || needs.version_check.outputs.PCAPKIT_TAG_EXISTS == 'false' }}
162163
strategy:
163164
matrix:
164165
python-version: [ "3.8", "3.9", "3.10", "3.11" ] # ignore 3.6/7 for now

0 commit comments

Comments
 (0)