Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Prebuild action fails if Changelog is missing from all commits of… #7659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ jobs:
git fetch origin ${{ github.base_ref }}
git rebase origin/${{ github.base_ref }}

- name: Check changelog
run: |
base_ref="${{ github.base_ref }}"
if [ -z "$base_ref" ]; then
base_ref="master"
fi
if [[ -z "$(git log origin/$base_ref..HEAD --oneline --grep='Changelog-')" && "$(git rev-parse --abbrev-ref HEAD)" != "$base_ref" ]]; then
echo "::error::'Changelog' entry is missing in all commits" && exit 1
fi

- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
Expand Down
Loading