Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0b8a775

Browse files
authored
Update snapshot.yml
1 parent 8ae5b66 commit 0b8a775

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/snapshot.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: snapshots
22

3-
on:
4-
push:
5-
branches:
6-
- master
3+
on: [pull_request, pull_request_target]
74

85
jobs:
96
snapshots:
@@ -17,6 +14,8 @@ jobs:
1714

1815
- name: Checkout
1916
uses: actions/checkout@v2
17+
with:
18+
ref: ${{ github.head_ref }}
2019

2120
- name: Cache node_modules
2221
uses: actions/cache@v1
@@ -36,5 +35,3 @@ jobs:
3635
with:
3736
commit_message: "test: update snapshots"
3837
file_pattern: "*.snap *.md"
39-
env:
40-
INPUT_BRANCH: "master"

0 commit comments

Comments
 (0)