Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4356b364f5 | |||
| 06ae7e6661 | |||
| b72578ecbe | |||
| 2ff7b6d295 | |||
| d4e0541ad6 | |||
| e6f6a4a360 |
27
.github/workflows/liteyuki-gitea-release.yaml
vendored
27
.github/workflows/liteyuki-gitea-release.yaml
vendored
@@ -17,31 +17,28 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Generate Changelog
|
||||
run: |
|
||||
echo "Current version: ${{ github.ref_name }}"
|
||||
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
|
||||
chmod +x /usr/bin/changelog
|
||||
changelog_output=$(changelog generate -m=${{ github.ref_name }} -c=./changelog.yaml)
|
||||
echo "$changelog_output"
|
||||
echo "::set-output name=changelog::$changelog_output"
|
||||
|
||||
# 创建 Gitea Release
|
||||
- name: Create Gitea Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
||||
run: |
|
||||
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"tag_name": "'"$TAG_NAME"'",
|
||||
"tag_name": "'"${{ github.ref_name }}"'",
|
||||
"target_commitish": "main",
|
||||
"name": "'"$TAG_NAME"'",
|
||||
"body": "'"waiting..."'",
|
||||
"body": "'"${{ steps.generate_changelog.outputs.changelog }}"'",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}'
|
||||
|
||||
|
||||
- name: Trigger Changelog Workflow
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
$GITEA_API_URL/repos/${{ github.repository }}/dispatches \
|
||||
-d '{"event_type": "generate_changelog"}'
|
||||
}'
|
||||
64
changelog.yaml
Normal file
64
changelog.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
# The full repository name
|
||||
repo: bot/yukilog
|
||||
|
||||
# Service type (gitea or github)
|
||||
service: gitea
|
||||
|
||||
# Base URL for Gitea instance if using gitea service type (optional)
|
||||
# Default: https://gitea.com
|
||||
base-url: https://git.liteyuki.icu
|
||||
|
||||
# Changelog groups and which labeled PRs to add to each group
|
||||
groups:
|
||||
-
|
||||
name: BREAKING
|
||||
labels:
|
||||
- pr/breaking
|
||||
-
|
||||
name: FEATURES
|
||||
labels:
|
||||
- type/feature
|
||||
-
|
||||
name: API
|
||||
labels:
|
||||
- modifies/api
|
||||
-
|
||||
name: BUGFIXES
|
||||
labels:
|
||||
- type/bug
|
||||
-
|
||||
name: ENHANCEMENTS
|
||||
labels:
|
||||
- type/enhancement
|
||||
- type/refactoring
|
||||
- topic/ui
|
||||
- topic/ui-interaction
|
||||
- performance/speed
|
||||
-
|
||||
name: SECURITY
|
||||
labels:
|
||||
- topic/security
|
||||
-
|
||||
name: TESTING
|
||||
labels:
|
||||
- type/testing
|
||||
-
|
||||
name: TRANSLATION
|
||||
labels:
|
||||
- modifies/translation
|
||||
-
|
||||
name: BUILD
|
||||
labels:
|
||||
- topic/build
|
||||
- topic/code-linting
|
||||
-
|
||||
name: DOCS
|
||||
labels:
|
||||
- type/docs
|
||||
- modifies/docs
|
||||
-
|
||||
name: MISC
|
||||
default: true
|
||||
|
||||
# regex indicating which labels to skip for the changelog
|
||||
skip-labels: skip-changelog|backport\/.+
|
||||
Reference in New Issue
Block a user