Skip to content

Commit b88ab18

Browse files
chore(ci): adjust old release process
1 parent f2ba914 commit b88ab18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/initiate_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ jobs:
1818

1919
- name: Get current tag
2020
id: previoustag
21-
uses: WyriHaximus/github-action-get-previous-tag@v1
21+
# skips pre-release tags (like rc.1, dev.1...)
22+
run: |
23+
echo "PREVIOUS_TAG=$(git tag --list --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)" >> $GITHUB_ENV
2224
2325
- name: Ensure version number higher than current
2426
uses: actions/github-script@v6
2527
env:
26-
PREVIOUS_TAG: ${{ steps.previoustag.outputs.tag }}
2728
DESTINATION_TAG: ${{ github.event.inputs.version }}
2829
with:
2930
script: |

0 commit comments

Comments
 (0)