File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
- #
2
- # This workflow updates the E2E screenshots when a comment with `/e2e-update-screenshots` is added to a pull request.
3
- #
4
1
name : E2E update screenshots
5
2
6
3
on :
7
- issue_comment :
8
- types : [created, edited]
4
+ workflow_dispatch :
9
5
10
6
permissions :
11
7
contents : write
@@ -16,25 +12,12 @@ concurrency:
16
12
17
13
jobs :
18
14
update_screenshots :
19
- if : ${{ github.event.issue.pull_request && github.event.comment.body == '/e2e-update-screenshots' }}
20
15
runs-on : ubuntu-latest
21
16
timeout-minutes : 10
22
17
steps :
23
- - name : React to the triggering comment
24
- run : hub api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=rocket'
25
- env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
-
28
18
- name : Checkout repository
29
19
uses : actions/checkout@v4
30
20
31
- - name : Checkout the branch from the PR that triggered the job
32
- run : |
33
- git config --global hub.protocol https
34
- hub pr checkout ${{ github.event.issue.number }}
35
- env :
36
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
-
38
21
- name : Setup yarn
39
22
uses : ./.github/workflows/actions/setup-yarn
40
23
You can’t perform that action at this time.
0 commit comments