File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 4545
4646 steps :
4747 - uses : actions/checkout@v4
48-
4948 - uses : dtolnay/rust-toolchain@stable
5049 - uses : Swatinem/rust-cache@v2
5150
@@ -84,18 +83,26 @@ jobs:
8483 needs : version
8584 runs-on : ubuntu-latest
8685 outputs :
87- notes : ${{ steps.cliff.outputs.content }}
86+ notes : ${{ steps.cliff.outputs.notes }}
87+
8888 steps :
8989 - uses : actions/checkout@v4
90+ with :
91+ fetch-depth : 0
92+
93+ - name : Install git-cliff (native, no Docker)
94+ run : |
95+ curl -sL https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-x86_64-unknown-linux-gnu.tar.gz \
96+ | tar -xz
97+ sudo mv git-cliff /usr/local/bin/
9098
91- - name : Generate Changelog with git-cliff
99+ - name : Generate changelog
92100 id : cliff
93- uses : orhun/git-cliff-action@v3
94- with :
95- config : cliff.toml
96- args : --latest --strip header
97- env :
98- OUTPUT : CHANGELOG_GENERATED.md
101+ run : |
102+ git-cliff --config cliff.toml --latest --strip header > CHANGELOG_GENERATED.md
103+ echo "notes<<EOF" >> $GITHUB_OUTPUT
104+ cat CHANGELOG_GENERATED.md >> $GITHUB_OUTPUT
105+ echo "EOF" >> $GITHUB_OUTPUT
99106
100107 release :
101108 needs : [version, build, changelog]
You can’t perform that action at this time.
0 commit comments