add high-assurance placeholder option to endpoint configuration #2604
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
name: changelog | |
on: | |
- pull_request | |
jobs: | |
check_has_news_in_changelog_dir: | |
if: | | |
! ( | |
contains(github.event.pull_request.labels.*.name, 'no-news-is-good-news') || | |
github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate' | |
) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: # do a deep fetch to allow merge-base and diff | |
fetch-depth: 0 | |
- name: check PR adds a news file | |
run: | | |
news_files="$(git diff --name-only "$(git merge-base origin/main "$GITHUB_SHA")" "$GITHUB_SHA" -- docs/changelog.rst changelog.d/*.rst)" | |
if [ -n "$news_files" ]; then | |
echo "Saw new files. changelog.d:" | |
echo "$news_files" | |
else | |
echo "No news files or changelog.rst modification seen" | |
exit 1 | |
fi |