Skip to content

Commit fc5ffba

Browse files
committed
Fix GitHub Actions workflow syntax for ref type check
Summary: This commit updates the nightly PyPI publish workflow to use the correct syntax for checking the GitHub reference type. The change ensures that the condition evaluates properly during the build process. Changes: - Modified the reference type check from `${GITHUB_REF_TYPE}` to `${{ github.ref_type }}` in `.github/workflows/nightly-pypi.yml`. This adjustment enhances the reliability of the workflow by aligning with the correct GitHub Actions context syntax.
1 parent ca34bd9 commit fc5ffba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nightly-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Build sdist/wheel
4242
run: |
43-
if [ "${GITHUB_REF_TYPE}" != "tag" ]; then
43+
if [ "${{ github.ref_type }}" != "tag" ]; then
4444
export SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.ver.outputs.NVER }}
4545
fi
4646
python -m build

0 commit comments

Comments
 (0)