Skip to content

build(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in /.github/actions/setup-env in the github-actions group across 1 directory #7855

build(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in /.github/actions/setup-env in the github-actions group across 1 directory

build(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in /.github/actions/setup-env in the github-actions group across 1 directory #7855

Workflow file for this run

# SPDX-License-Identifier: MIT
name: changelog entry
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled, reopened]
branches:
- master
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# https://docs.astral.sh/uv/reference/environment/
UV_LOCKED: 1
UV_NO_SYNC: 1
UV_PYTHON_DOWNLOADS: never
jobs:
check-changelog-entry:
name: Check for changelog entry
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# towncrier needs a non-shallow clone
fetch-depth: '0'
persist-credentials: false
- name: Set up environment
id: setup-env
uses: ./.github/actions/setup-env
with:
update-uv-lock: true
- name: Install dependencies
run: uv sync --only-group changelog
- name: Check for presence of a Change Log fragment (only pull requests)
# NOTE: The pull request' base branch needs to be fetched so towncrier
# is able to compare the current branch with the base branch.
run: |
if ! uv run towncrier check --compare-with origin/${BASE_BRANCH}; then
echo "::error::Please see https://github.com/DisnakeDev/disnake/blob/master/changelog/README.rst for details on how to create a changelog entry." >&2
exit 1
fi
env:
BASE_BRANCH: ${{ github.base_ref }}