File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,11 +14,26 @@ jobs:
1414 steps :
1515 - name : Checkout
1616 uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Install Rust toolchain
21+ uses : dtolnay/rust-toolchain@stable
22+
23+ - name : Install cargo-semver-checks
24+ run : cargo install cargo-semver-checks
1725
1826 - name : Run cargo-semver-checks
1927 id : check_semver
20- # Fork https://github.com/obi1kenobi/cargo-semver-checks-action/pull/65
21- uses : orhun/cargo-semver-checks-action@cc19b888f2062f8cc964c1d52f7f29d910becb31
28+ run : |
29+ set +e
30+ cargo semver-checks --baseline-rev origin/main 2>&1 | tee /tmp/semver-output.txt
31+ EXIT_CODE=${PIPESTATUS[0]}
32+ OUTPUT=$(sed 's/\x1b\[[0-9;]*m//g' /tmp/semver-output.txt)
33+ echo "logs<<EOF" >> "$GITHUB_OUTPUT"
34+ echo "$OUTPUT" >> "$GITHUB_OUTPUT"
35+ echo "EOF" >> "$GITHUB_OUTPUT"
36+ exit $EXIT_CODE
2237
2338 comment-on-pr :
2439 name : Comment on pull request
You can’t perform that action at this time.
0 commit comments