-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated publish-release and rc-release and added changelog chang…
…e check (#1386) * fix: updated publish-release and rc-release. These now follow GitOps. Added changelog check to ensure changelog.md has changed between PRs. Now cutting a release will be a merge into the main branch. * added logic to changelog check to have a skip method
- Loading branch information
Showing
5 changed files
with
121 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Changelog Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check for CHANGELOG.md changes | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }} | ||
run: | | ||
git fetch origin ${{ github.base_ref }} | ||
CHANGELOG_DIFF=$(git diff origin/${{ github.base_ref }} origin/${{ github.head_ref }} -- changelog.md) | ||
echo "${CHANGELOG_DIFF}" | ||
if [ -z "$CHANGELOG_DIFF" ]; then | ||
echo "ERROR: No changes detected in CHANGELOG.md. Please update the changelog." | ||
exit 1 | ||
else | ||
echo "CHANGELOG.md has been updated." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.