diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37403c22..474fdf81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,14 +30,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GIT_API_TAGGING: false # uses git cli - # auto releases is not working atm and is deleting releases due branch tags - - name: automatic-draft-release - uses: marvinpinto/action-automatic-releases@v1.2.1 + - name: automatic-release + uses: softprops/action-gh-release@v2.0.0 with: - draft: true - repo_token: ${{ secrets.GITHUB_TOKEN }} - title: "${{ steps.tag.outputs.tag }}: [title-edit-me] by:${{ github.actor }}" - automatic_release_tag: ${{ steps.tag.outputs.new_tag }} + token: ${{ secrets.GITHUB_TOKEN }} + tag_name: ${{ steps.tag.outputs.new_tag }} + generate_release_notes: true + prerelease: false - name: version-tag-major env: diff --git a/entrypoint.sh b/entrypoint.sh index 9f43f89a..c31e2a33 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -104,7 +104,7 @@ matching_pre_tag_refs=$( (grep -E "$preTagFmt" <<< "$git_refs") || true) tag=$(head -n 1 <<< "$matching_tag_refs") pre_tag=$(head -n 1 <<< "$matching_pre_tag_refs") -# if there are none, start tags at INITIAL_VERSION +# if there are none, start tags at initial version if [ -z "$tag" ] then if $with_v