-
Notifications
You must be signed in to change notification settings - Fork 109
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. 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.
- Loading branch information
Showing
3 changed files
with
62 additions
and
213 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,26 @@ | ||
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 | ||
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