-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(changie): add CI to ensure
changie new
was run
This commit adds a CI pipeline to ensure that `changie new` was run for each PR. It also makes sure we don't forget to bump the package version whenever a new changie release was created.
- Loading branch information
1 parent
2d2a48e
commit 0909626
Showing
5 changed files
with
47 additions
and
2 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,3 @@ | ||
## v0.1.0 - 2024-06-17 | ||
### Features | ||
* Sync and async implementation of GraphQL and ADBC clients. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check CHANGELOG | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git fetch --depth=1 origin ${{ github.event.pull_request.base.name }} | ||
|
||
- name: Setup Python ${{ env.PYTHON_VERSION }} environment | ||
uses: ./.github/actions/setup-python-env | ||
|
||
- name: Check for new changie entry | ||
run: | | ||
CHANGES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E "\.changes/.*\.md") | ||
if [ "$CHANGES" == "" ]; then | ||
echo "No files added to `.changes/`. Make sure you run `changie new`." | ||
exit 1 | ||
fi | ||
- name: Assert CHANGELOG and package versions are the same | ||
run: | ||
CHANGELOG_VERSION=$(changie latest | cut -c 2-) | ||
PACKAGE_VERSION=$(hatch version) | ||
if [ "$CHANGELOG_VERSION" != "$PACKAGE_VERSION" ]; then | ||
echo "Changelog has version '$CHANGELOG_VERSION' while package has '$PACKAGE_VERSION'." | ||
exit 1 | ||
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