Skip to content

Commit

Permalink
Merge branch 'master' into py-typed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cube707 committed Mar 9, 2023
2 parents ee86c84 + 4a69e22 commit fa09cd6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0
- name: Set env
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "BRANCH=$(git branch -r --contains ${GITHUB_REF} | grep -v HEAD | sed -n 's/ *origin\/\(.*\)/\1/p')" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -30,7 +34,7 @@ jobs:
pip install setuptools wheel twine
- name: get infos from Tag
run: |
if [[ $GITHUB_REF =~ (([0-9]+)\.([0-9]+)\.([0-9]+))([-./]dev([0-9]+))? ]]
if [[ $RELEASE_TAG =~ (([0-9]+)\.([0-9]+)\.([0-9]+))([-./]dev([0-9]+))? ]]
then
echo "VERSION=${BASH_REMATCH[0]}" >> $GITHUB_ENV
echo "VERSION_MAJOR=${BASH_REMATCH[2]}" >> $GITHUB_ENV
Expand Down Expand Up @@ -72,4 +76,6 @@ jobs:
- name: commit new version-number
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ env.BRANCH }}
create_branch: true
commit_message: "increment version after release"

0 comments on commit fa09cd6

Please sign in to comment.