Fix table style #366
Workflow file for this run
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: 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 }} |