Skip to content

Commit

Permalink
Update pypi-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Sep 30, 2023
1 parent a32c816 commit 48fb13d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
run: |
echo "TAG_NAME=$(git describe --tags)" >> $GITHUB_ENV
echo "BRANCH=$(git branch -a --contains $TAG_NAME | grep -v HEAD | cut -d '/' -f3)" | tee -a $GITHUB_ENV
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
ref: $BRANCH
- name: Extract Tag Name
run: echo "TAG_NUMBER=$(git describe --tags | sed 's/v//')" >> $GITHUB_ENV
run: echo "TAG_NUMBER=$($TAG_NAME | sed 's/v//')" >> $GITHUB_ENV
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 48fb13d

Please sign in to comment.