We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ba914 commit b88ab18Copy full SHA for b88ab18
.github/workflows/initiate_release.yml
@@ -18,12 +18,13 @@ jobs:
18
19
- name: Get current tag
20
id: previoustag
21
- uses: WyriHaximus/github-action-get-previous-tag@v1
+ # 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
24
25
- name: Ensure version number higher than current
26
uses: actions/github-script@v6
27
env:
- PREVIOUS_TAG: ${{ steps.previoustag.outputs.tag }}
28
DESTINATION_TAG: ${{ github.event.inputs.version }}
29
with:
30
script: |
0 commit comments