chore: Bump 1password/load-secrets-action to v3 #630
Workflow file for this run
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: Storybook Preview | |
| on: | |
| pull_request: | |
| types: | |
| - labeled | |
| - synchronize | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| uses: ./.github/workflows/shared-deploy.yml | |
| if: contains(github.event.pull_request.labels.*.name, 'preview') | |
| secrets: inherit | |
| comment: | |
| runs-on: ubuntu-latest | |
| needs: deploy | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Load secrets from OP | |
| id: load-secrets | |
| uses: 1password/load-secrets-action@v3.0.0 | |
| with: | |
| export-env: false | |
| env: | |
| OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
| ARABOT_PAT_TRIGGER_WORKFLOW: op://kv_gov-ui-kit_infra/GITHUB_PAT/credential | |
| - name: Comment preview PR | |
| uses: thollander/actions-comment-pull-request@v3.0.1 | |
| with: | |
| message: "🚀 **Preview Deployment:** [View Here](${{ needs.deploy.outputs.deploymentUrl }})" | |
| comment-tag: preview-url | |
| github-token: ${{ steps.load-secrets.outputs.ARABOT_PAT_TRIGGER_WORKFLOW }} |