feat(input): always-on password-toggle (#DS-4288) #230
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: E2E approve snapshots | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| approve_snapshots: | |
| if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots') }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: xt0rted/pull-request-comment-branch@v2 | |
| id: comment-branch | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ steps.comment-branch.outputs.head_ref }} | |
| - uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| message: 🔄 [Updating](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) snapshots. | |
| - uses: ./.github/workflows/actions/setup-node | |
| - run: yarn run e2e:setup | |
| - id: update-snapshots | |
| run: | | |
| yarn run e2e:components --update-snapshots | |
| - uses: stefanzweifel/git-auto-commit-action@v5 | |
| id: commit-and-push | |
| with: | |
| commit_message: 'test: updated e2e snapshots' | |
| file_pattern: '**/*.png' | |
| - uses: thollander/actions-comment-pull-request@v3 | |
| if: ${{ steps.commit-and-push.outputs.changes_detected == 'true' }} | |
| with: | |
| message: ✅ Snapshots [updated](https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}/commits/${{ steps.commit-and-push.outputs.commit_hash }})! | |
| - uses: thollander/actions-comment-pull-request@v3 | |
| if: ${{ steps.commit-and-push.outputs.changes_detected != 'true' }} | |
| with: | |
| message: ⚠️ No snapshot changes detected. | |
| - uses: thollander/actions-comment-pull-request@v3 | |
| if: ${{ failure() && steps.update-snapshots.outcome == 'failure' }} | |
| with: | |
| message: 🚨 Failed to [update](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) snapshots. |