From c7969bfe0cfa4998c2ff56dd6ca6ce203212e59a Mon Sep 17 00:00:00 2001 From: Santiago Ramirez <94815926+SantiiRepair@users.noreply.github.com> Date: Sat, 30 Sep 2023 01:29:19 +0000 Subject: [PATCH] Update pypi-publish.yml --- .github/workflows/pypi-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 015f034..33237ac 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.ref_name }} - name: Extract Tag Name run: echo "TAG_NUMBER=$(git describe --tags | sed 's/v//')" >> $GITHUB_ENV - name: Set up Python 3.11 @@ -26,6 +26,7 @@ jobs: run: python -m pip install poetry poetry2setup wheel - name: Bump Version run: | + echo "${{ github.ref_name }}" poetry version $TAG_NUMBER poetry2setup > setup.py - name: Commit Changes