-
Notifications
You must be signed in to change notification settings - Fork 118
34 lines (28 loc) · 1.08 KB
/
storybook-cicd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Autoupgrade Storybook CICD
concurrency:
group: storybook-${{ github.ref }}
on:
push:
branches:
- dev
- feat/workflow-dispatch
release:
types: [released]
jobs:
storybook-repository-dispatch:
name: Trigger Repository Dispatch
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Get tag
shell: bash
id: get_tag
run: echo TAG=$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.AUTOUPGRADE_CD_PAT }}
repository: ${{ secrets.AUTOUPGRADE_CD_REPOSITORY }}
event-type: storybook
#client-payload: '{"environment": "${{ github.event.action == ''released'' && ''production'' || ''integration'' }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get_tag.outputs.TAG }}"}'
client-payload: '{"environment": "integration", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get_tag.outputs.TAG }}"}'