Merge pull request #1841 from PrestaShop/dependabot/npm_and_yarn/_dev… #611
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 }}"}' |