diff --git a/.github/workflows/changelog_entry.yaml b/.github/workflows/changelog_entry.yaml new file mode 100644 index 00000000..d0eb8574 --- /dev/null +++ b/.github/workflows/changelog_entry.yaml @@ -0,0 +1,29 @@ +name: Versioning + +on: + pull_request: + branches: [ main ] + +jobs: + check-changelog-entry: + name: Changelog entry check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Check for changelog entry + run: | + if [ ! -f "changelog_entry.yaml" ]; then + echo "Error: changelog_entry.yaml file is missing." + echo "Please add a changelog_entry.yaml file at the root of the repository." + exit 1 + fi + + # Check if the file is empty + if [ ! -s "changelog_entry.yaml" ]; then + echo "Error: changelog_entry.yaml file is empty." + echo "Please add content to the changelog_entry.yaml file." + exit 1 + fi + + echo "Changelog entry found and is not empty." \ No newline at end of file diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29b..2116320f 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + added: + - Changelog entry check.