From 02cc2649dd9e78e10e7234ba079527bfaf52edba Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 12 Jul 2023 14:59:30 +0800 Subject: [PATCH] action: remove commit log changes when package a release version , the commit log will be too much --- .github/workflows/macos-homebrew-breakpad.yml | 10 +--------- .github/workflows/macos-homebrew.yml | 10 +--------- .github/workflows/ubuntu-6.2.yml | 11 ----------- .github/workflows/ubuntu.yml | 10 ---------- .github/workflows/windows-6.x.yml | 10 ---------- .github/workflows/windows.yml | 10 +--------- 6 files changed, 3 insertions(+), 58 deletions(-) diff --git a/.github/workflows/macos-homebrew-breakpad.yml b/.github/workflows/macos-homebrew-breakpad.yml index b104882d..9cc85ade 100644 --- a/.github/workflows/macos-homebrew-breakpad.yml +++ b/.github/workflows/macos-homebrew-breakpad.yml @@ -142,13 +142,7 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" + echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" @@ -237,9 +231,7 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - ${{ steps.changelog.outputs.changelog }} #### Changes diff --git a/.github/workflows/macos-homebrew.yml b/.github/workflows/macos-homebrew.yml index 36671982..0c78d367 100644 --- a/.github/workflows/macos-homebrew.yml +++ b/.github/workflows/macos-homebrew.yml @@ -141,13 +141,7 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" + echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" @@ -236,9 +230,7 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - ${{ steps.changelog.outputs.changelog }} #### Changes diff --git a/.github/workflows/ubuntu-6.2.yml b/.github/workflows/ubuntu-6.2.yml index dc199c0f..794f3537 100644 --- a/.github/workflows/ubuntu-6.2.yml +++ b/.github/workflows/ubuntu-6.2.yml @@ -117,13 +117,6 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" @@ -213,10 +206,6 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - - ${{ steps.changelog.outputs.changelog }} - #### Changes ${{steps.build_changelog.outputs.changelog}} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a6ad5caf..c41adae3 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -101,13 +101,6 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: Set outputs @@ -195,9 +188,6 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - - ${{ steps.changelog.outputs.changelog }} #### Changes diff --git a/.github/workflows/windows-6.x.yml b/.github/workflows/windows-6.x.yml index 16485077..9595473a 100644 --- a/.github/workflows/windows-6.x.yml +++ b/.github/workflows/windows-6.x.yml @@ -59,13 +59,6 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" @@ -267,9 +260,6 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - - ${{ steps.changelog.outputs.changelog }} #### Changes diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 22096d1a..20164927 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -62,13 +62,7 @@ jobs: previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" - CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" - CHANGELOG="${CHANGELOG//'%'/'%25'}" - CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" - CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - CHANGELOG="${CHANGELOG//'\"'/'%22'}" - CHANGELOG="${CHANGELOG//"'"/ }" - echo "::set-output name=changelog::$(echo "$CHANGELOG")" + echo "::set-output name=prev_tag::$previousTag" echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" @@ -239,9 +233,7 @@ jobs: macOS: macOS-12 and macOS-13 Windows: Visual studio 2019 - #### Commits - ${{ steps.changelog.outputs.changelog }} #### Changes