Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
0125f02699 | |||
a1328dc32e | |||
733f16c90c | |||
034b3208c6 | |||
623ef5dc12 | |||
4fc79db1c4 | |||
08121dec64
|
|||
f1e9fa1a0a
|
|||
9df008366e
|
|||
4333f15808
|
|||
a084d9ef5b
|
|||
5f4e6d89ce
|
|||
2430ead654
|
|||
65ec77be9c
|
|||
e3cda73dc6
|
@ -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 }}
|
||||
|
@ -18,13 +18,26 @@ jobs:
|
||||
curl -sSL https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | tar -xz
|
||||
sudo mv git-chglog /usr/local/bin/
|
||||
|
||||
- name: Set UTF-8 locale
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y locales
|
||||
sudo locale-gen en_US.UTF-8
|
||||
sudo update-locale LANG=en_US.UTF-8
|
||||
shell: bash
|
||||
|
||||
- name: Export UTF-8 env vars
|
||||
run: |
|
||||
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
||||
echo "LC_ALL=en_US.UTF-8" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate changelog
|
||||
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#*/}
|
||||
@ -32,7 +45,7 @@ jobs:
|
||||
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
|
||||
|
||||
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
|
||||
-H "Authorization: token $GIT_TOKEN" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"$TAG\",
|
||||
|
Reference in New Issue
Block a user