Skip to content

Commit

Permalink
Fixing sample file format
Browse files Browse the repository at this point in the history
  • Loading branch information
jesalg authored Sep 18, 2021
1 parent e0e7ac3 commit 0e7edf5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ Actions can be setup to run conditionally when a specific file(s) on a particula
The `paths` keywords accept glob patterns that use the * and ** wildcard characters to match more than one path name. For more information, see the [documentation](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths).

```yaml
name: "commit-hawk"
name: hawk
on:
push:
branches:
- main
paths:
- '/some/important/file'

jobs:
commit-hawk:
uses: actions/commit-hawk-action@v1
with:
slack_webhook_url: 'https://slack.webhook'
slack_message: 'Contents of some important file were changed on master'
hawk:
name: hawk
runs-on: ubuntu-latest

steps:
- name: CommitHawk
uses: jesalg/[email protected]
with:
slack_webhook_url: 'https://hooks.slack.com/services/XYZ'
slack_message: 'Contents of some important file were changed on main'
```

0 comments on commit 0e7edf5

Please sign in to comment.