Merge pull request #1771 from soledis-contributeur/B2B-Contribution/a… #571
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: Autoupgrade Storybook CICD | |
| concurrency: | |
| group: storybook-${{ github.ref }} | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| 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 }}"}' |