Skip to content

chore: Bump the minor-and-patch group with 2 updates #1385

chore: Bump the minor-and-patch group with 2 updates

chore: Bump the minor-and-patch group with 2 updates #1385

name: Storybook Preview
on:
pull_request:
types:
- labeled
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
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
steps:
- name: Load secrets from OP
id: load-secrets
uses: 1password/load-secrets-action@3a12b0ab99d9cd590a3e9b5a90ea017210ed9556 #v4.0.1
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@24bffb9b452ba05a4f3f77933840a6a841d1b32b # 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 }}