mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-22 01:17:40 +00:00
chore: generate changelogs using tj-actions/git-cliff (#1069)
This commit is contained in:
parent
5e2d64b30d
commit
6e426e6495
2 changed files with 2 additions and 10 deletions
6
.github/workflows/sync-release-version.yml
vendored
6
.github/workflows/sync-release-version.yml
vendored
|
@ -46,10 +46,8 @@ jobs:
|
||||||
only_major: true
|
only_major: true
|
||||||
paths: |
|
paths: |
|
||||||
README.md
|
README.md
|
||||||
- name: Generate CHANGELOG
|
- name: Run git-cliff
|
||||||
uses: tj-actions/github-changelog-generator@v1.18
|
uses: tj-actions/git-cliff@v1
|
||||||
with:
|
|
||||||
output: 'HISTORY.md'
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4.2.4
|
uses: peter-evans/create-pull-request@v4.2.4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -260,14 +260,8 @@ else
|
||||||
if git merge-base "$PREVIOUS_SHA" "$CURRENT_SHA" 1>/dev/null 2>&1; then
|
if git merge-base "$PREVIOUS_SHA" "$CURRENT_SHA" 1>/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::debug::Merge base is not in the local history, fetching remote target branch again..."
|
echo "::debug::Merge base is not in the local history, fetching remote target branch again..."
|
||||||
echo "::debug::Attempt $i/10"
|
echo "::debug::Attempt $i/10"
|
||||||
|
|
||||||
if [[ $i -eq 10 ]]; then
|
|
||||||
echo "::error::Unable to find the merge base between $PREVIOUS_SHA and $CURRENT_SHA"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue