Skip to content

Override main with code to support templating #2522

Override main with code to support templating

Override main with code to support templating #2522

Workflow file for this run

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