Preparation for hotfix release 19.0.1+1 #289
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
# A CI workflow to remind the contributor to update the changelog. | |
name: Changelog Reminder | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened, labeled, unlabeled] | |
paths: | |
- '**/*.dart' | |
jobs: | |
changelog-reminder: | |
if: ${{ !contains(github.event.*.labels.*.name, 'changelog-not-required') }} | |
name: Maybe prevent submission | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repositiory | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | |
- name: Check changed files | |
run: | | |
git fetch origin master | |
PR_DIFF=$(git diff origin/master --name-only) | |
echo "$PR_DIFF" | |
if [[ $PR_DIFF == *"CHANGELOG.md"* ]]; then | |
echo "CHANGELOG.md has been updated." | |
exit 0; | |
fi | |
echo "Did not detect an update to the CHANGELOG.md in this PR." | |
echo "Please update the CHANGELOG.md, or add the 'changelog-not-required' label." | |
exit 1 |