Skip to content

feat(docs/web-components): custom styling and custom slots #17

feat(docs/web-components): custom styling and custom slots

feat(docs/web-components): custom styling and custom slots #17

name: 📸 Update Snapshots from /approve-snapshots
on:
issue_comment:
types:
- created
permissions:
contents: write
pull-requests: write
jobs:
update-snapshots:
name: Update Snapshots
if:
${{ github.event.issue.pull_request && github.event.comment.body ==
'/approve-snapshots' }}
runs-on: ubuntu-latest
steps:
- name: 🔍 get PR branch
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: ✍️ comment action started
uses: thollander/actions-comment-pull-request@v3
with:
message: |
> /approve-snapshots
⏳ Updating snapshots. Click [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) to see the status.
- name: 🔧 setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: 🔧 setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: 📦 install dependencies
run: pnpm install
- name: 🎭 install playwright
run: pnpm playwright install --with-deps --only-shell
# Set up GitHub Actions caching for Wireit.
- name: 🔌 setup wireit cache
uses: google/wireit@setup-github-actions-caching/v2
- name: 📸 update snapshots
run: pnpm run test:update-snapshots
- 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!