Skip to content

New Crowdin updates #941

New Crowdin updates

New Crowdin updates #941

name: Storybook CI/CD
on:
pull_request:
types: [opened,edited,reopened,synchronize,labeled]
push:
branches:
- master
env:
NODE_VERSION: 20
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/[email protected]
- name: Trigger build and deploy
uses: benc-uk/workflow-dispatch@v1
with:
workflow: facebook-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": "_dev", "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/[email protected]
- name: Trigger build and deploy
uses: benc-uk/workflow-dispatch@v1
with:
workflow: facebook-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": "_dev", "environment": "stable" }'