diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 2bc33b2..82c5567 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -16,8 +16,8 @@ jobs: - uses: actions/checkout@v3 - name: Get Version id: get_version - # E.g. converts ref/tags/0.0.1 -> 0.0.1 - run: echo "VERSION=$(echo $GITHUB_REF | sed 's#ref/tags/##')" >> $GITHUB_OUTPUT + # E.g. converts ref/tags/v0.0.1 -> 0.0.1 + run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3 | cut -c 4-)" >> $GITHUB_OUTPUT - name: Get Label id: get_label # E.g. converts 0.0.1-beta.1 -> beta