Override main with code to support templating #2522
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: Changelog | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
changelog-updated: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check if changelog updated | |
id: changed-files-specific | |
uses: tj-actions/[email protected] | |
with: | |
base_sha: ${{ github.event.pull_request.base.sha }} | |
files: | | |
CHANGELOG.md | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Fail job if changelog not updated | |
if: steps.changed-files-specific.outputs.any_changed == 'false' | |
run: | | |
exit 1 | |