Skip to content

Commit

Permalink
Allow reversed words to skip changelog [skip ci] (#2021)
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
composerinteralia authored and nateberkopec committed Oct 10, 2019
1 parent 2f9d84e commit dd78166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_changelog.yml
Expand Up @@ -10,4 +10,4 @@ jobs:
- 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\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep History.md
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

0 comments on commit dd78166

Please sign in to comment.