Skip to content

New Crowdin updates (#1833) #5232

New Crowdin updates (#1833)

New Crowdin updates (#1833) #5232

name: Storybook CI/CD
on:
pull_request:
types: [opened,edited,reopened,synchronize,labeled]
push:
branches:
- master
env:
WORKFLOW: googleshopping-storybook.yml
NODE_VERSION: 20
PATH: _dev/
jobs:
alpha:
name: Alpha - Storybook
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'Storybook Test')
steps:
- name: Get branch name
id: branch
uses: tj-actions/branch-names@v7
- name: Trigger build and deploy
uses: benc-uk/workflow-dispatch@v1
with:
workflow: googleshopping-storybook.yml
repo: PrestaShopCorp/services-deployment
token: ${{ secrets.ACCESS_TOKEN }}
ref: 'refs/heads/main'
inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "nodeVersion": "${{ env.NODE_VERSION }}", "path": "${{ env.PATH }}", "issue": "${{ github.event.number }}" }'
stable:
name: Stable - Storybook
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Get branch name
id: branch
uses: tj-actions/branch-names@v7
- name: Trigger build and deploy
uses: benc-uk/workflow-dispatch@v1
with:
workflow: googleshopping-storybook.yml
repo: PrestaShopCorp/services-deployment
token: ${{ secrets.ACCESS_TOKEN }}
ref: 'refs/heads/main'
inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "nodeVersion": "${{ env.NODE_VERSION }}", "path": "${{ env.PATH }}", "environment": "stable" }'