File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2222
2323 - name : get versions
2424 id : get
25+ # echo "NEW_VERSION=$(echo '${{ github.ref_name }}' | cut -2-)" | tee -a $GITHUB_OUTPUT
2526 run : |
26- echo "NEW_VERSION=$(echo '${{ github.ref_name }} ' | cut -2-)" | tee -a $GITHUB_OUTPUT
27+ echo "NEW_VERSION=$(echo 'v4.2.1 ' | cut -2-)" | tee -a $GITHUB_OUTPUT
2728 echo "OLD_VERSION=$(curl -s https://pypi.org/pypi/readchar/json | jq -r .info.version)" | tee -a $GITHUB_OUTPUT
2829
2930 - name : validate version
3334 from sys import exit
3435 from packaging import version
3536
36- # new_version = version.parse("${{ steps.get.outputs.NEW_VERSION }}")
37- new_version = version.parse("4.2.1") # TODO: remove
37+ new_version = version.parse("${{ steps.get.outputs.NEW_VERSION }}")
3838 old_version = version.parse("${{ steps.get.outputs.OLD_VERSION }}")
3939
4040 if not new_version > old_version:
@@ -110,13 +110,12 @@ jobs:
110110 - name : Checkout
111111 uses : actions/checkout@v4
112112 with :
113- ref : ${{ needs.tag.outputs.ref }}
114113 fetch-depth : 3
115114
116115 - name : get branch
117116 run : |
118- git fetch
119- git branch tmp --track $(git log --pretty='%D' | grep -o -m1 "fork/[^']*")
117+ git fetch origin 'refs/heads/*:refs/remotes/origin/*'
118+ git branch tmp --track " $(git log --pretty='%D' | grep -o -m1 'origin/.*')"
120119 git checkout tmp
121120
122121 - name : get versions
@@ -127,6 +126,7 @@ jobs:
127126 from os import environ
128127 from packaging import version
129128 ver = version.parse("${{ github.ref_name }}")
129+ ver = version.parse("4.2.1")
130130 if ver.dev is not None:
131131 new_ver = f"{ver.base_version}-dev{ver.dev +1}"
132132 else:
You can’t perform that action at this time.
0 commit comments