Error refactoring and thiserror
2.0
#802
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
# Runs changelog related jobs. | |
# CI job heavily inspired by: https://github.com/tarides/changelog-check-action | |
name: changelog | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled, unlabeled] | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: Check for changes in changelog | |
env: | |
BASE_REF: ${{ github.event.pull_request.base.ref }} | |
NO_CHANGELOG_LABEL: ${{ contains(github.event.pull_request.labels.*.name, 'no changelog') }} | |
run: ./scripts/check-changelog.sh "${{ inputs.changelog }}" | |
shell: bash |