File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - name : Set $TAG env var
1919 run : echo "${{github.ref}}" | sed 's/refs\/tags\///' | xargs -I $ echo "::set-env name=TAG::$"
2020
21+ - name : Set $PREVIOUS_TAG env var
22+ run : git tag --sort=refname | grep $TAG -B 1 | grep -m1 "" | xargs -I $ echo "::set-env name=PREVIOUS_TAG::$"
23+
24+ - name : Generate list of changes
25+ run : |
26+ cat > release.md <<EOF
27+ # # Changes
28+ $(git log $TAG...$PREVIOUS_TAG --format="- [%h](../../commit/%h) %s")
29+ EOF
30+
2131 - name : Generate build files
2232 uses : thatisuday/go-cross-build@v1
2333 with :
3545 with :
3646 tag_name : ${{ github.ref }}
3747 release_name : ${{ github.ref }}
38- body_path : ./docs/releases/${{ env.TAG }} .md
48+ body_path : ./release .md
3949
4050 - name : Upload Release Asset (darwin-amd64)
4151 uses : actions/upload-release-asset@v1
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments