Skip to content

feat(Section): add spacing to sub headings in sections #241

feat(Section): add spacing to sub headings in sections

feat(Section): add spacing to sub headings in sections #241

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