Added scroll and custom widths #548
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: Check Changelog.md | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-changelog: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch changed files | |
id: fetch-changed-files | |
run: | | |
response=$(gh api \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
repos/${owner}/${REPO}/pulls/${PULL_NUMBER}/files) | |
echo "$response" | jq '.' > response.json | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
owner: ${{ github.repository_owner }} | |
REPO: ${{ github.event.repository.name }} | |
PULL_NUMBER: ${{ github.event.pull_request.number }} | |
- name: Check if Changelog.md is changed | |
run: | | |
if [[ $(jq '.[].filename' response.json) == *"CHANGELOG.md"* ]]; then | |
echo "Changelog.md is changed" | |
exit 0 | |
else | |
echo "Changelog.md is not changed" | |
exit 1 | |
fi |