Skip to content

Commit 3f94875

Browse files
authored
chore: updated e2e update screenshot action (#804)
1 parent c684019 commit 3f94875

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,25 @@ concurrency:
1616

1717
jobs:
1818
update_screenshots:
19-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/e2e-update-screenshots') }}
19+
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/e2e-update-screenshots' }}
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 10
2222
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+
2328
- name: Checkout repository
2429
uses: actions/checkout@v4
2530

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+
2638
- name: Setup yarn
2739
uses: ./.github/workflows/actions/setup-yarn
2840

0 commit comments

Comments
 (0)