Update workflows to check Changelog and build gem #5
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@v4 | |
with: | |
fetch-depth: 1 | |
- name: Check if changelog updated | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v44 | |
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 | |