This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
[pre-commit.ci] pre-commit autoupdate #132
Workflow file for this run
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
# This file was generated from skeleton-ci/[email protected]. | ||
# Instead of changing this particular file, you might want to alter the template: | ||
# https://github.com/skeleton-ci/skeleton-python/tree/0.0.2rc-215-g792492f/project/.github/workflows/news.yml.jinja | ||
# IMPORTANT! | ||
# Pinned versions of actions and Poetry are managed in a different repository. | ||
# Do not submit PRs to this file unless for this repo specifically. | ||
# To change this workflow globally, submit a PR to https://github.com/skeleton-ci/skeleton-python. | ||
name: "Check news entry" | ||
on: | ||
pull_request: | ||
types: | ||
- "labeled" | ||
- "unlabeled" | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
env: | ||
SKIP_NEWS_FROM_USERS: | ||
- "dependabot[bot]" | ||
- "pre-commit-ci[bot]" | ||
jobs: | ||
check-news-entry: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
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, 'skip news') | ||
&& !contains(env.SKIP_NEWS_FROM_USERS, github.event.pull_request.user.login) | ||
run: "pipx run towncrier check --compare-with origin/${{github.base_ref}}" |