Skip to content

feat(icons): new system icon pin #3446

feat(icons): new system icon pin

feat(icons): new system icon pin #3446

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 }}