Skip to content

Commit 0e7edf5

Browse files
authored
Fixing sample file format
1 parent e0e7ac3 commit 0e7edf5

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,23 @@ Actions can be setup to run conditionally when a specific file(s) on a particula
2121
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).
2222

2323
```yaml
24-
name: "commit-hawk"
24+
name: hawk
2525
on:
2626
push:
2727
branches:
2828
- main
2929
paths:
3030
- '/some/important/file'
31+
3132
jobs:
32-
commit-hawk:
33-
uses: actions/commit-hawk-action@v1
34-
with:
35-
slack_webhook_url: 'https://slack.webhook'
36-
slack_message: 'Contents of some important file were changed on master'
33+
hawk:
34+
name: hawk
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: CommitHawk
39+
uses: jesalg/[email protected]
40+
with:
41+
slack_webhook_url: 'https://hooks.slack.com/services/XYZ'
42+
slack_message: 'Contents of some important file were changed on main'
3743
```

0 commit comments

Comments
 (0)