Skip to content

chore: setup manual workflow dispatch for e2e update screenshots action #807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .github/workflows/e2e-update-screenshots.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#
# This workflow updates the E2E screenshots when a comment with `/e2e-update-screenshots` is added to a pull request.
#
name: E2E update screenshots

on:
issue_comment:
types: [created, edited]
workflow_dispatch:

permissions:
contents: write
Expand All @@ -16,25 +12,12 @@ concurrency:

jobs:
update_screenshots:
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/e2e-update-screenshots' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: React to the triggering comment
run: hub api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=rocket'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout the branch from the PR that triggered the job
run: |
git config --global hub.protocol https
hub pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup yarn
uses: ./.github/workflows/actions/setup-yarn

Expand Down