diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 283ba41bbae..22df65f04ae 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -1,5 +1,5 @@ name: '🚀 Package Release' -run-name: '🚀 Release ${{ inputs.working-directory }} by @${{ github.actor }}' +run-name: 'Release ${{ inputs.working-directory }} by @${{ github.actor }}' on: workflow_call: inputs: @@ -111,7 +111,7 @@ jobs: # Look for the latest release of the same base version REGEX="^$PKG_NAME==$BASE_VERSION\$" PREV_TAG=$(git tag --sort=-creatordate | (grep -P "$REGEX" || true) | head -1) - + # If no exact base version match, look for the latest release of any kind if [ -z "$PREV_TAG" ]; then REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$" @@ -122,7 +122,7 @@ jobs: PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG="" # backup case if releasing e.g. 0.3.0, looks up last release - # note if last release (chronologically) was e.g. 0.1.47 it will get + # note if last release (chronologically) was e.g. 0.1.47 it will get # that instead of the last 0.2 release if [ -z "$PREV_TAG" ]; then REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$" @@ -484,7 +484,7 @@ jobs: with: name: dist path: ${{ inputs.working-directory }}/dist/ - + - name: Create Tag uses: ncipollo/release-action@v1 with: