Skip to content

Commit

Permalink
Try without separate action
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Nov 14, 2023
1 parent a5cdf4a commit f0fb80a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,11 @@ jobs:
curl -LO https://github.com/marcaddeo/clparse/releases/download/0.9.1/clparse-0.9.1-x86_64-unknown-linux-musl.tar.gz
tar xzvf clparse-0.9.1-x86_64-unknown-linux-musl.tar.gz
sudo mv clparse /usr/local/bin/clparse
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Prepare git refs
run: |
git checkout main
git checkout ${{ steps.branch-name.outputs.current_branch }}
- name: Check CHANGELOG.md diff
run: |
diff \
<(git show main:CHANGELOG.md | clparse --format=json --separator=– - | jq '.releases[] | select(.version != null)') \
<(git show ${{ steps.branch-name.outputs.current_branch }}:CHANGELOG.md | clparse --format=json --separator=– - | jq '.releases[] | select(.version != null)')
<(git show origin/main:CHANGELOG.md | clparse --format=json --separator=– - | jq '.releases[] | select(.version != null)') \
<(git show HEAD:CHANGELOG.md | clparse --format=json --separator=– - | jq '.releases[] | select(.version != null)')
- name: Add comment on pull request
if: ${{ failure() }}
uses: thollander/actions-comment-pull-request@v2
Expand Down

0 comments on commit f0fb80a

Please sign in to comment.