Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 733f16c90c | |||
| 034b3208c6 | |||
| 623ef5dc12 | |||
| 4fc79db1c4 | |||
|
08121dec64
|
|||
|
f1e9fa1a0a
|
|||
|
9df008366e
|
|||
|
4333f15808
|
|||
|
a084d9ef5b
|
|||
|
5f4e6d89ce
|
|||
|
2430ead654
|
|||
|
65ec77be9c
|
|||
|
e3cda73dc6
|
|||
|
5b8771a87d
|
@@ -1,6 +1,8 @@
|
||||
{{ range .Versions }}
|
||||
<a name="{{ .Tag.Name }}"></a>
|
||||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||
## 📰 BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||
|
||||
### test
|
||||
|
||||
{{ range .CommitGroups -}}
|
||||
### {{ .Title }}
|
||||
|
||||
@@ -19,20 +19,23 @@ jobs:
|
||||
sudo mv git-chglog /usr/local/bin/
|
||||
|
||||
- name: Generate changelog
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
run: |
|
||||
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
|
||||
|
||||
- name: Create Release on Gitea
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||
run: |
|
||||
TAG=$(git describe --tags)
|
||||
REPO=${GITEA_REPOSITORY#*/}
|
||||
OWNER=${GITEA_REPOSITORY%/*}
|
||||
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
|
||||
|
||||
curl -X POST "https://dev.ksite.de/api/v1/repos/$OWNER/$REPO/releases" \
|
||||
-H "Authorization: token $GIT_TOKEN" \
|
||||
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"$TAG\",
|
||||
|
||||
Reference in New Issue
Block a user