Skip to content

Commit 1c208dc

Browse files
committed
fix docs and example
1 parent c8f5fae commit 1c208dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/example.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Git Diff example
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- example-*
6+
- master
77

88
jobs:
99
check_diff:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
```
5757
5858
> [!WARNING]
59-
> At this moment the action does not support branches with `/` in the name. For example, `feature/branch` will not work.
59+
> At this moment it only works with the `pull_request` event. It uses the `GITHUB_BASE_REF` environment variable to get the base branch of the PR and this environment variable is only available in the `pull_request` event.

0 commit comments

Comments
 (0)