Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,20 @@ jobs:
with:
fetch-depth: 0

- name: Check if changelog skip requested
id: skip-check
env:
PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
if echo "$PR_LABELS" | grep -q "skip-changelog"; then
echo "skip=true" >> $GITHUB_OUTPUT
echo "skip-changelog label found, skipping changelog check"
else
echo "skip=false" >> $GITHUB_OUTPUT
fi

- name: Check if changelog is required
if: steps.skip-check.outputs.skip != 'true'
id: needs-changelog
run: |
# Changelog is required if the PR touches code or test files under sdk/
Expand All @@ -81,15 +94,15 @@ jobs:
fi

- name: Check CHANGELOG.md updated
if: steps.needs-changelog.outputs.required == 'true'
if: steps.skip-check.outputs.skip != 'true' && steps.needs-changelog.outputs.required == 'true'
run: |
if ! git diff origin/main --name-only | grep -q "sdk/CHANGELOG.md"; then
echo "::error::CHANGELOG.md must be updated. Add your changes under [Unreleased] section."
exit 1
fi

- name: Check changelog content
if: steps.needs-changelog.outputs.required == 'true'
if: steps.skip-check.outputs.skip != 'true' && steps.needs-changelog.outputs.required == 'true'
env:
IS_RELEASE: ${{ contains(github.event.pull_request.labels.*.name, 'release') }}
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
with:
name: release-dists
path: sdk/dist/
retention-days: 7

create-tag:
needs: [prepare, build-and-test]
Expand Down
Loading