Add healthcheck in PHP back end of Storybook and handle new env var P… #19
This file contains 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 | |
- 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 }}"}' |