feat(release): add debug step to check tags and commits[skip ci]

This commit is contained in:
2026-01-14 00:30:05 +08:00
parent dd37b2e199
commit 0a99c1071b

View File

@@ -3,11 +3,11 @@ name: Release FRP Binaries
on: on:
push: push:
tags: tags:
- 'v*' - "v*"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag: tag:
description: 'Tag to release (e.g., v1.0.0)' description: "Tag to release (e.g., v1.0.0)"
required: true required: true
type: string type: string
@@ -100,11 +100,26 @@ jobs:
echo EOF echo EOF
} >> $GITHUB_OUTPUT } >> $GITHUB_OUTPUT
- name: Debug - Check tags and commits
run: |
echo "Current tag: ${{ steps.tag.outputs.tag }}"
PREV_TAG=$(git describe --tags --abbrev=0 ${{ steps.tag.outputs.tag }}^ 2>/dev/null || echo "none")
echo "Previous tag: $PREV_TAG"
echo ""
echo "Commits between tags:"
if [ "$PREV_TAG" != "none" ]; then
git log --oneline $PREV_TAG..${{ steps.tag.outputs.tag }}
else
echo "First tag, showing all commits:"
git log --oneline ${{ steps.tag.outputs.tag }}
fi
- name: Build Changelog - name: Build Changelog
id: changelog id: changelog
uses: mikepenz/release-changelog-builder-action@v4 uses: mikepenz/release-changelog-builder-action@v4
with: with:
configuration: | configurationJson: |
{ {
"categories": [ "categories": [
{ {
@@ -134,30 +149,51 @@ jobs:
], ],
"template": "#{{CHANGELOG}}\n\n## 📥 Download\n\n### Checksums (SHA256)\n\n```\n${{ steps.checksums.outputs.content }}\n```\n\n**Full Changelog**: #{{RELEASE_DIFF}}", "template": "#{{CHANGELOG}}\n\n## 📥 Download\n\n### Checksums (SHA256)\n\n```\n${{ steps.checksums.outputs.content }}\n```\n\n**Full Changelog**: #{{RELEASE_DIFF}}",
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}", "pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}",
"empty_template": "- No changes", "commit_template": "- #{{TITLE}} by @#{{AUTHOR}}",
"empty_template": "- No changes in this release",
"mode": "COMMIT",
"sort": {
"order": "ASC",
"on_property": "mergedAt"
},
"max_tags_to_fetch": 200,
"max_pull_requests": 200,
"max_back_track_time_days": 365,
"label_extractor": [ "label_extractor": [
{ {
"pattern": "^(feat|feature)(\\(.+\\))?:", "pattern": "^(feat|feature)(\\(.+\\))?:",
"target": "feature" "target": "feature",
"on_property": "title"
}, },
{ {
"pattern": "^fix(\\(.+\\))?:", "pattern": "^fix(\\(.+\\))?:",
"target": "fix" "target": "fix",
"on_property": "title"
}, },
{ {
"pattern": "^docs(\\(.+\\))?:", "pattern": "^docs(\\(.+\\))?:",
"target": "docs" "target": "docs",
"on_property": "title"
}, },
{ {
"pattern": "^(chore|refactor|perf)(\\(.+\\))?:", "pattern": "^(chore|refactor|perf)(\\(.+\\))?:",
"target": "chore" "target": "chore",
"on_property": "title"
},
{
"pattern": "^(deps|dependencies)(\\(.+\\))?:",
"target": "dependencies",
"on_property": "title"
} }
] ],
"ignore_labels": ["ignore", "no-changelog"],
"ignore_commits": ["skip-ci", "skip ci", "[skip ci]"]
} }
outputFile: CHANGELOG.md
toTag: ${{ steps.tag.outputs.tag }} toTag: ${{ steps.tag.outputs.tag }}
commitMode: true
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with: