generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
``` |