1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/.github/workflows/check_changelog.yml
Daniel Colson dd781669d7 Allow reversed words to skip changelog [skip ci] (#2021)
[Travis][] allows both "<KEYWORD> skip" and "skip <KEYWORD>", as does
[Circleci][]. I never remember which order the words should go in, so it
is a nice convenience if either order works.

[Travis]: https://docs.travis-ci.com/user/customizing-the-build/#skipping-a-build
[Circleci]: https://circleci.com/docs/2.0/skip-build/#skipping-a-build
2019-10-10 11:06:39 +02:00

13 lines
429 B
YAML

name: Check Changelog
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check that CHANGELOG is touched or PR is [ci skip]-d
run: |
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(skip changelog\)\|\(ci skip\)\|\(skip ci\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep History.md