🤖 Bump oxsecurity/megalinter from 7 to 8 #71
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
name: Verify changelog | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
verify-changelog: | |
name: Verify changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-src-files | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: src/**/* | |
- name: Verify cCHANGELOG.adochangelog modifications | |
id: changed-changelog-md | |
if: steps.changed-src-files.outputs.any_changed == 'true' | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: CHANGELOG.adoc | |
- name: Fail if changelog was not modified | |
if: steps.changed-changelog-md.outputs.any_changed == 'false' | |
run: exit 1 |