diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog-enforcer.yml similarity index 58% rename from .github/workflows/changelog.yml rename to .github/workflows/changelog-enforcer.yml index 37baee43..0756514d 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog-enforcer.yml @@ -1,23 +1,16 @@ -name: changelog +name: changelog-enforcer on: pull_request: - branches: - - '**' - path: - # Only run if changes were made in markdown/ or the changelog + paths: + # Only run if changes were made in markdown/ - 'markdown/**' - - 'docs/changelog.md' - -# permissions: -# pull-requests: write jobs: - validate: + check-for-entry: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Ensure Changelog Entry Made uses: dangoslen/changelog-enforcer@v3 with: @@ -27,10 +20,3 @@ jobs: changelog describing the changes you have made. Doing so will help to ensure your contribution is accepted. Please see the [Contributing Guide](https://python-markdown.github.io/contributing/#changelog) for details. - - name: Validate Changelog - if: success() - id: changelog_reader - uses: mindsers/changelog-reader-action@v2 - with: - validation_level: error - path: docs/changelog.md diff --git a/.github/workflows/changelog-validator.yml b/.github/workflows/changelog-validator.yml new file mode 100644 index 00000000..2dff4708 --- /dev/null +++ b/.github/workflows/changelog-validator.yml @@ -0,0 +1,20 @@ +name: changelog-validator + +on: + pull_request: + paths: + # Only run if changes were made to the changelog + - 'docs/changelog.md' + +jobs: + validate: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Validate Changelog + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + validation_level: error + path: docs/changelog.md