diff --git a/.github/workflows/e2e-update-screenshots.yml b/.github/workflows/e2e-update-screenshots.yml index 117460021..04aa9f9f5 100644 --- a/.github/workflows/e2e-update-screenshots.yml +++ b/.github/workflows/e2e-update-screenshots.yml @@ -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 @@ -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