diff --git a/.github/workflows/change.yaml b/.github/workflows/change.yaml index 8a52bc1a..08cf04bb 100644 --- a/.github/workflows/change.yaml +++ b/.github/workflows/change.yaml @@ -16,30 +16,49 @@ jobs: - name: Generate run: | - tags=$(git tag --sort=creatordate) - previous="" - if [ ! -f CHANGELOG.md ]; then - echo "" > CHANGELOG.md - else - previous=$(grep -oP '^## \K.*' CHANGELOG.md | tail -n 1) - fi - for tag in $tags; do - if [ -n "$previous" ]; then - echo "## $tag" >> CHANGELOG.md - git log --pretty=format:"* %s (%h)" "$previous..$tag" >> CHANGELOG.md - echo -e "\n" >> CHANGELOG.md + tags=($(git tag --merged $(git rev-parse HEAD) --sort=-creatordate)) + preTag=$(grep -oP '^## \K.*' CHANGELOG.md | head -n 1) + currentTag="" + for ((i = 0; i <= ${#tags[@]}; i++)); do + if (( i < ${#tags[@]} )); then + tag=${tags[$i]} + else + tag="" + fi + if [ -n "$currentTag" ]; then + if [ "$(echo -e "$currentTag\n$preTag" | sort -V | head -n 1)" == "$currentTag" ]; then + break + fi + fi + if [ -n "$currentTag" ]; then + echo "## $currentTag" >> CHANGELOG.md + echo "" >> CHANGELOG.md + if [ -n "$tag" ]; then + git log --pretty=format:"%B" "$tag..$currentTag" | awk 'NF {print "- " $0} !NF {print ""}' >> CHANGELOG.md + else + git log --pretty=format:"%B" "$currentTag" | awk 'NF {print "- " $0} !NF {print ""}' >> CHANGELOG.md + fi + echo "" >> CHANGELOG.md fi - previous=$tag + currentTag=$tag done - name: Commit run: | - if !git diff --cached --quiet; then - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add CHANGELOG.md - git commit -m "Update Changelog" + git add CHANGELOG.md + if ! git diff --cached --quiet; then + echo "Commit pushing" + git config --local user.email "chen08209@gmail.com" + git config --local user.name "chen08209" + git commit -m "Update changelog" git push + if [ $? -eq 0 ]; then + echo "Push succeeded" + else + echo "Push failed" + exit 1 + fi fi + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index bbabad87..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,630 +0,0 @@ -## v0.8.63 - -- Fix windows admin auto launch issues - -- Add android vpn options - -- Support proxies icon configuration - -- Optimize android immersion display - -- Fix some issues - -## v0.8.62 - -- Optimize ip detection - -- Support android vpn ipv6 inbound switch - -- Support log export - -- Optimize more details - -- Fix android system dns issues - -- Optimize dns default option - -- Fix some issues - -- Update readme - -- Update README.md 2 - -- Update README.md 2 - -- Update README.md - -## v0.8.60 - -- Fix build error2 - -- Fix build error - -- Support desktop hotkey - -- Support android ipv6 inbound - -- Support android system dns - -- fix some bugs - -## v0.8.59 - -- Fix delete profile error - -## v0.8.58 - -- Fix submit error 2 - -- Fix submit error - -- Optimize DNS strategy - -- Fix the problem that the tray is not displayed in some cases - -- Optimize tray - -- Update core - -- Fix some error - -## v0.8.57 - -- Fix tun update issues - -- Add DNS override -- Fixed some bugs -- Optimize more detail - -- Add Hosts override - -## v0.8.56 - -- fix android tip error -- fix windows auto launch error - -## v0.8.55 - -- Fix windows tray issues - -- Optimize windows logic - -- Optimize app logic - -- Support windows administrator auto launch - -- Support android close vpn - -## v0.8.53 - -- Change flutter version - -- Support profiles sort - -- Support windows country flags display - -- Optimize proxies page and profiles page columns - -## v0.8.52 - -- Update flutter version - -- Update version - -- Update timeout time - -- Update access control page - -- Fix bug - -## v0.8.51 - -- Optimize provider page - -- Optimize delay test - -- Support local backup and recovery - -- Fix android tile service issues - -## v0.8.49 - -- Fix linux core build error - -- Add proxy-only traffic statistics - -- Update core - -- Optimize more details - -- Merge pull request #140 from txyyh/main - -- 添加自建 F-Droid 仓库相关 workflow -- Rename readme fingerprint - -- Rename workflow deploy repo name - -- Add download guide to README - -- Add push release files to fdroid-repo - -## v0.8.48 - -- Optimize proxies page - -- Fix ua issues - -- Optimize more details - -## v0.8.47 - -- Fix windows build error - -## v0.8.46 - -- Update app icon - -- Fix desktop backup error - -- Optimize request ua - -- Change android icon - -- Optimize dashboard - -## v0.8.44 - -- Remove request validate certificate - -- Sync core - -## v0.8.43 - -- Fix windows error - -## v0.8.42 - -- Fix setup.dart error - -- Fix android system proxy not effective - -- Add macos arm64 - -## v0.8.41 - -- Optimize proxies page - -- Support mouse drag scroll - -- Adjust desktop ui - -- Revert "Fix android vpn issues" - -- This reverts commit 891977408e6938e2acd74e9b9adb959c48c79988. - -## v0.8.40 - -- Fix android vpn issues - -- Fix android vpn issues - -- Rollback partial modification - -## v0.8.39 - -- Fix the problem that ui can't be synchronized when android vpn is occupied by an external - -- Override default socksPort,port - -## v0.8.38 - -- Fix fab issues - -## v0.8.37 - -- Update version - -- Fix the problem that vpn cannot be started in some cases - -- Fix the problem that geodata url does not take effect - -## v0.8.36 - -- Update ua - -- Fix change outbound mode without check ip issues - -- Separate android ui and vpn - -- Fix url validate issues 2 - -- Add android hidden from the recent task - -- Add geoip file - -- Support modify geoData URL - -## v0.8.35 - -- Fix url validate issues - -- Fix check ip performance problem - -- Optimize resources page - -## v0.8.34 - -- Add ua selector - -- Support modify test url - -- Optimize android proxy - -- Fix the error that async proxy provider could not selected the proxy - -## v0.8.33 - -- Fix android proxy error - -- Fix submit error - -- Add windows tun - -- Optimize android proxy - -- Optimize change profile - -- Update application ua - -- Optimize delay test - -## v0.8.32 - -- Fix android repeated request notification issues - -## v0.8.31 - -- Fix memory overflow issues - -## v0.8.30 - -- Optimize proxies expansion panel 2 - -- Fix android scan qrcode error - -## v0.8.29 - -- Optimize proxies expansion panel - -- Fix text error - -## v0.8.28 - -- Optimize proxy - -- Optimize delayed sorting performance - -- Add expansion panel proxies page - -- Support to adjust the proxy card size - -- Support to adjust proxies columns number - -- Fix autoRun show issues - -- Fix Android 10 issues - -- Optimize ip show - -## v0.8.26 - -- Add intranet IP display - -- Add connections page - -- Add search in connections, requests - -- Add keyword search in connections, requests, logs - -- Add basic viewing editing capabilities - -- Optimize update profile - -## v0.8.25 - -- Update version - -- Fix the problem of excessive memory usage in traffic usage. - -- Add lightBlue theme color - -- Fix start unable to update profile issues - -- Fix flashback caused by process - -## v0.8.23 - -- Add build version - -- Optimize quick start - -- Update system default option - -## v0.8.22 - -- Update build.yml - -- Fix android vpn close issues - -- Add requests page - -- Fix checkUpdate dark mode style error - -- Fix quickStart error open app - -- Add memory proxies tab index - -- Support hidden group - -- Optimize logs - -- Fix externalController hot load error - -## v0.8.21 - -- Add tcp concurrent switch - -- Add system proxy switch - -- Add geodata loader switch - -- Add external controller switch - -- Add auto gc on trim memory - -- Fix android notification error - -## v0.8.20 - -- Fix ipv6 error - -- Fix android udp direct error - -- Add ipv6 switch - -- Add access all selected button - -- Remove android low version splash - -## v0.8.19 - -- Update version - -- Add allowBypass - -- Fix Android only pick .text file issues - -## v0.8.18 - -- Fix search issues - -## v0.8.17 - -- Fix LoadBalance, Relay load error - -- Fix build.yml4 - -- Fix build.yml3 - -- Fix build.yml2 - -- Fix build.yml - -- Add search function at access control - -- Fix the issues with the profile add button to cover the edit button - -- Adapt LoadBalance and Relay - -- Add arm - -- Fix android notification icon error - -## v0.8.16 - -- Add one-click update all profiles -- Add expire show - -## v0.8.15 - -- Temp remove tun mode - -- Remove macos in workflow - -- Change go version - -## v0.8.14 - -- Update Version - -- Fix tun unable to open - -## v0.8.13 - -- Optimize delay test2 - -- Optimize delay test - -- Add check ip - -- add check ip request - -## v0.8.12 - -- Fix the problem that the download of remote resources failed after GeodataMode was turned on, which caused the application to flash back. - -- Fix edit profile error - -- Fix quickStart change proxy error - -- Fix core version - -## v0.8.10 - -- Fix core version - -## v0.8.9 - -- Update file_picker - -- Add resources page - -- Optimize more detail - -- Add access selected sorted - -- Fix notification duplicate creation issue - -- Fix AccessControl click issue - -## v0.8.7 - -- Fix Workflow - -- Fix Linux unable to open - -- Update README.md 3 - -- Create LICENSE -- Update README.md 2 - -- Update README.md - -- Optimize workFlow - -## v0.8.6 - -- optimize checkUpdate - -## v0.8.5 - -- Fix submit error - -## v0.8.4 - -- add WebDAV - -- add Auto check updates - -- Optimize more details - -- optimize delayTest - -## v0.8.2 - -- upgrade flutter version - -## v0.8.1 - -- Update kernel -- Add import profile via QR code image - -## v0.8.0 - -- Add compatibility mode and adapt clash scheme. - -## v0.7.14 - -- update Version - -- Reconstruction application proxy logic - -## v0.7.13 - -- Fix Tab destroy error - -## v0.7.12 - -- Optimize repeat healthcheck - -## v0.7.11 - -- Optimize Direct mode ui - -## v0.7.10 - -- Optimize Healthcheck - -- Remove proxies position animation, improve performance -- Add Telegram Link - -- Update healthcheck policy - -- New Check URLTest - -- Fix the problem of invalid auto-selection - -## v0.7.8 - -- New Async UpdateConfig - -- add changeProfileDebounce - -- Update Workflow - -- Fix ChangeProfile block - -- Fix Release Message Error - -## v0.7.7 - -- Update Selector 2 - -## v0.7.6 - -- Update Version - -- Fix Proxies Select Error - -## v0.7.5 - -- Fix the problem that the proxy group is empty in global mode. - -- Fix the problem that the proxy group is empty in global mode. - -## v0.7.4 - -- Add ProxyProvider2 - -## v0.7.3 - -- Add ProxyProvider - -- Update Version - -- Update ProxyGroup Sort - -- Fix Android quickStart VpnService some problems - -## v0.7.1 - -- Update version - -- Set Android notification low importance - -- Fix the issue that VpnService can't be closed correctly in special cases - -- Fix the problem that TileService is not destroyed correctly in some cases - -- Adjust tab animation defaults - -- Add Telegram in README_zh_CN.md - -- Add Telegram - -## v0.7.0 - -- update mobile_scanner - -- Initial commit -