mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #10364 from pradyunsg/tweak-news-file
This commit is contained in:
commit
f5c4a0911e
13
.github/workflows/news-file.yaml
vendored
13
.github/workflows/news-file.yaml
vendored
|
@ -1,13 +0,0 @@
|
|||
on:
|
||||
pull_request:
|
||||
types: [labeled, unlabeled, opened, reopened, synchronize]
|
||||
jobs:
|
||||
check-news-file:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# `towncrier check` needs enough history to run `git diff --name-only origin/main...`
|
||||
fetch-depth: 0
|
||||
- run: pipx run towncrier check --compare-with origin/main
|
||||
if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }}
|
25
.github/workflows/news-file.yml
vendored
Normal file
25
.github/workflows/news-file.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled, unlabeled, opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
check-news-entry:
|
||||
name: news entry
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# `towncrier check` runs `git diff --name-only origin/main...`, which
|
||||
# needs a non-shallow clone.
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check news entry
|
||||
if: "!contains(github.event.pull_request.labels.*.name, 'trivial')"
|
||||
run: |
|
||||
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then
|
||||
echo "Please see https://pip.pypa.io/dev/news-entry-failure for guidance."
|
||||
false
|
||||
fi
|
Loading…
Reference in a new issue