Version 0.3.0 #6
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 updated | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
check-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Fetch main branch | |
run: git fetch origin main | |
- name: Check if changelog is updated | |
run: | | |
if git diff --name-only origin/main ${{ github.sha }} | grep -q 'docs/additional_information/changelog.rst'; then | |
echo "Changelog has been updated." | |
else | |
echo "::error::Changelog has not been updated." | |
exit 1 | |
fi |