Skip to content

chore: release

chore: release #3506

name: Teardown Pull Request
on:
pull_request:
types: [closed]
jobs:
teardown:
runs-on: ubuntu-22.04
env:
IMAGE_NAME: rg.fr-par.scw.cloud/console-scw/ultraviolet
STORYBOOK_DEPLOYMENT_NAME: storybook
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Export custom variables
run: |
SAFE_STORYBOOK_HEAD_REF=$(echo $GITHUB_HEAD_REF_SLUG_URL-$STORYBOOK_DEPLOYMENT_NAME | rev | cut -c-37 | rev | sed 's/^-//g')
echo "STORYBOOK_BRANCH_SLUG=$SAFE_STORYBOOK_HEAD_REF" >> $GITHUB_ENV
- name: Remove storybook deployment
uses: bobheadxi/[email protected]
with:
step: delete-env
token: ${{ secrets.GH_TOKEN }}
env: ${{ env.STORYBOOK_BRANCH_SLUG }}