diff --git a/.github/workflows/api-spec.yml b/.github/workflows/api-spec.yml index ba00c4a..7dd51eb 100644 --- a/.github/workflows/api-spec.yml +++ b/.github/workflows/api-spec.yml @@ -163,7 +163,9 @@ jobs: - name: Determine whether the spec changed id: changes run: | - if [ -s changelog.md ] && ! grep -qi 'no changes' changelog.md; then + # oasdiff writes "No changelog changes" (v0.1.x) / "No changes" (older) + # when the spec is unchanged; treat either as no change. + if [ -s changelog.md ] && ! grep -qiE 'no (changelog )?changes' changelog.md; then echo "has_changes=true" >> "$GITHUB_OUTPUT" else echo "has_changes=false" >> "$GITHUB_OUTPUT" diff --git a/CHANGELOG.md b/CHANGELOG.md index e7869f9..f63ea1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ See [keep a changelog] for information about writing changes to this log. ## [Unreleased] +- [PR-61](https://github.com/itk-dev/event-database-api/pull/61) + Fix the API-spec workflow's no-change detection for oasdiff v0.1.x ("No changelog changes" wording) - [PR-60](https://github.com/itk-dev/event-database-api/pull/60) Upgrade Elasticsearch to 8.19.18 (dev image) and the `elasticsearch/elasticsearch` client constraint to `^8.19` - [PR-59](https://github.com/itk-dev/event-database-api/pull/59)