Action that fails if the pull request diff contains one or more specified words.
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run package
Run the tests ✔️
$ npm test
...
Please use this action only on pull_request
events, it won't work anywhere else.
The words array contains the words that would make the action fail if they are present in the PR changes.
Do not quote/double quote the words because that would search for quoted/double quoted words (unless that's what you want to do).
name: "Check forbidden words"
on: [pull_request]
jobs:
check_pr:
runs-on: ubuntu-latest
steps:
- name: Check forbidden words
uses: freetrade-io/freetrade-pr-diff-action@releases/v1
with:
github-token: ${{github.token}}
words: |
Cache-Control
cache-control