Skip to content

fix(Notification): onClose handler in ControlledNotification #297

fix(Notification): onClose handler in ControlledNotification

fix(Notification): onClose handler in ControlledNotification #297

name: Cleanup preview repository
on:
pull_request:
types:
- closed
env:
TARGET_DOCS_PATH: "/docs/${{ github.event.pull_request.head.ref }}"
TARGET_STORYBOOK_PATH: "/storybook/${{ github.event.pull_request.head.ref }}"
jobs:
cleanup_previews:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
PUBLISH_PAT: ${{ secrets.PUBLISH_PAT }}
steps:
- name: Cleanup docs directory 🧹
uses: maaaathis/delete-remote-directory@main
env:
API_TOKEN_GITHUB: ${{ secrets.PUBLISH_PAT }}
with:
target-github-username: mittwald
target-repository-name: flow-previews
target-branch: main
target-directory: "${{ env.TARGET_DOCS_PATH }}"
commit-message: "Cleanup merged docs previews"
- name: Cleanup storybook directory 🧹
uses: maaaathis/delete-remote-directory@main
env:
API_TOKEN_GITHUB: ${{ secrets.PUBLISH_PAT }}
with:
target-github-username: mittwald
target-repository-name: flow-previews
target-branch: main
target-directory: "${{ env.TARGET_STORYBOOK_PATH }}"
commit-message: "Cleanup merged Storybook previews"
- name: Summary
run: |
echo Deleted Documentation and Storybook for branch: ${{ github.event.pull_request.head.ref }}