Skip to content

chore: (deps): bump github/codeql-action from 3.26.12 to 3.26.13 in the dependencies group across 1 directory #274

chore: (deps): bump github/codeql-action from 3.26.12 to 3.26.13 in the dependencies group across 1 directory

chore: (deps): bump github/codeql-action from 3.26.12 to 3.26.13 in the dependencies group across 1 directory #274

Workflow file for this run

# Reference:
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-python
# - https://github.com/jwalton/gh-find-current-pr
# - https://github.com/snnaplab/get-labels-action
# - https://github.com/jitterbit/get-changed-files (don't use - abandoned repo?)
# - https://github.com/dorny/paths-filter
name: ci-changelog
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
push:
branches:
- "!main"
tags:
- "!v*"
workflow_dispatch:
jobs:
changelog:
name: 'validate changelog'
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
if: github.actor != 'pre-commit-ci[bot]'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: 'get PR number'
uses: jwalton/gh-find-current-pr@89ee5799558265a1e0e31fab792ebb4ee91c016b
id: pr
- name: 'get PR labels'
uses: snnaplab/get-labels-action@f426df40304808ace3b5282d4f036515f7609576
- name: 'filter changelog'
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: changes
with:
filters: |
changelog:
- 'changelog/**'
list-files: 'csv'
- name: 'validate changelog'
if: ${{ ! contains(fromJSON(env.LABELS), 'skip changelog') }}
env:
CHANGELOG: "${{ steps.changes.outputs.changelog_files }}"
PR: "${{ steps.pr.outputs.number }}"
SCRIPTS: "./.github/scripts"
run: |
python -m pip install click towncrier
python -c "import sys; print(f'version = {sys.version}')"
towncrier --version
python ${SCRIPTS}/changelog.py "${PR}" "${CHANGELOG}"