Skip to content

Commit 4bc3246

Browse files
committed
chore: setup manual workflow dispatch for e2e update screenshots action
1 parent 3f94875 commit 4bc3246

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/e2e-update-screenshots.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#
2-
# This workflow updates the E2E screenshots when a comment with `/e2e-update-screenshots` is added to a pull request.
3-
#
41
name: E2E update screenshots
52

63
on:
7-
issue_comment:
8-
types: [created, edited]
4+
workflow_dispatch:
95

106
permissions:
117
contents: write
@@ -16,25 +12,12 @@ concurrency:
1612

1713
jobs:
1814
update_screenshots:
19-
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/e2e-update-screenshots' }}
2015
runs-on: ubuntu-latest
2116
timeout-minutes: 10
2217
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-
2818
- name: Checkout repository
2919
uses: actions/checkout@v4
3020

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-
3821
- name: Setup yarn
3922
uses: ./.github/workflows/actions/setup-yarn
4023

0 commit comments

Comments
 (0)