Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #132

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #132

Workflow file for this run

# 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]"

Check failure on line 23 in .github/workflows/news.yml

View workflow run for this annotation

GitHub Actions / Check news entry

Invalid workflow file

The workflow is not valid. .github/workflows/news.yml (Line: 23, Col: 3): A sequence was not expected
- "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}}"