Version 0.1.2 #1
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
name: Changelog | |
on: | |
pull_request: | |
branches: | |
- main | |
# Edited such that we can detect changes to the description | |
types: [opened, synchronize, reopened, edited] | |
permissions: | |
pull-requests: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# We need to fetch the parents of the HEAD commit (which is a merge), | |
# because we need to compare the PR against the base branch | |
# to check whether it added a changelog | |
fetch-depth: 2 | |
- name: check changelog | |
run: scripts/check-changelog.sh . ${{ github.event.pull_request.number }} | |
env: | |
GH_TOKEN: ${{ github.token }} | |