Bump @radix-ui/react-select from 2.1.6 to 2.2.2 #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Snapshots on Comment | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
update-snapshots: | |
name: Update Snapshots | |
if: github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots') | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Get branch of PR | |
uses: xt0rted/pull-request-comment-branch@v2 | |
id: comment-branch | |
- name: Checkout PR branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ steps.comment-branch.outputs.head_ref }} | |
- name: Extract URL from comment | |
id: extract-url | |
env: | |
COMMENT: ${{ github.event.comment.body }} | |
run: | | |
URL=$(echo "$COMMENT" | grep -o 'https://[^ ]*' | head -1) | |
echo "preview_url=$URL" >> $GITHUB_OUTPUT | |
- name: Comment action started | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
message: | | |
### Updating snapshots. Click [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) to see the status. | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run Playwright update snapshots | |
run: pnpm exec playwright test --update-snapshots | |
env: | |
E2E_UPLOADTHING_TOKEN: ${{ secrets.E2E_UPLOADTHING_TOKEN }} | |
BASE_URL: ${{ steps.extract-url.outputs.preview_url }} | |
- name: Commit and push updated snapshots | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'Update e2e snapshots' | |
- name: Comment success | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
message: | | |
### 🎉 Successfully updated and committed Playwright snapshots! 🎉 |