diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 8e3eb3f8..f9355c24 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -34,7 +34,28 @@ on: #.github #vendor jobs: + changes: + runs-on: ubuntu-latest + outputs: + files-changed: ${{ steps.filter.outputs.markdown }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + markdown: + - '*.{md,MD}' + - '**/*.{md,MD}' + - '.github/config/.markdownlint.json' + - '.github/config/.prettierignore' + - '.github/config/md-link-config.json' + - '.github/config/spellcheck.yml' + - '.github/config/wordlist.txt' + - '.github/workflows/*.yaml' markdown: + needs: changes + if: ${{ needs.changes.outputs.files-changed == 'true' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5824811a..1903622d 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,11 +1,13 @@ # github-workflows Release Notes -## 0.0.2-dev - 2023-10-09 +## 0.0.2-dev - 2023-10-10 ### Features - add-to-project workflow: set PR on creation to `🏗 In progress` and when ready to `🔖 Ready` (PR #50 by @chicco785) +- markdown workflow: run jobs only when there are changes to markdown related + files (PR #52 by @chicco785) - markdown workflow: exclude `vendor` folder from links check (PR #47 by @tejo) - markdown workflow: exclude `vendor` folder from checks (PR #46 by @tejo) - add-to-project workflow: automatically add reviewers without need of