Skip to content

Update dependencies & use @mml-io/model-loader #21

Update dependencies & use @mml-io/model-loader

Update dependencies & use @mml-io/model-loader #21

Workflow file for this run

name: delete preview on PR close
# only trigger on pull request closed events
on:
pull_request:
types: [closed]
permissions:
id-token: write
contents: write
pull-requests: write
checks: write
jobs:
delete_preview:
runs-on: ubuntu-20.04
env:
PR_PATH: pull/${{github.event.number}}
steps:
- name: make empty dir
run: mkdir empty-dir
- name: delete folder
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./empty-dir
destination_dir: ${{ env.PR_PATH }}
- name: Comment on PR
uses: hasura/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
id: deploy-preview
message: "🪓 PR closed, deleted preview at https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/"