mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00

[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
13 lines
429 B
YAML
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
|