Skip to content

Commit

Permalink
Ajoute la vérification de modification du CHANGELOG.md dans la CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks committed Aug 3, 2023
1 parent ff14315 commit 0743249
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/is-version-number-acceptable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ then
echo "Look at the CONTRIBUTING.md file to learn how the version number should be updated."
exit 1
fi

if ! $(dirname "$BASH_SOURCE")/has-functional-changes.sh | grep --quiet CHANGELOG.md
then
echo "CHANGELOG.md has not been modified, while functional changes were made."
echo "Explain what you changed before merging this branch into master."
echo "Look at the CONTRIBUTING.md file to learn how to write the changelog."
exit 2
fi
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
openfisca test tests --country-package openfisca_france --extensions openfisca_france_local
check-version:
check-version-and-changelog:
runs-on: ubuntu-20.04
needs: [ test-yaml ] # Last job to run
steps:
Expand Down

0 comments on commit 0743249

Please sign in to comment.