Files
docker-docs/.github/workflows/clean-pr.yml
2022-07-18 13:56:58 +02:00

28 lines
669 B
YAML

name: clean-pr
on:
pull_request:
types:
- closed
jobs:
netlify-remove:
runs-on: ubuntu-20.04
if: github.event.pull_request.head.repo.fork == false
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
-
name: Remove site from Netlify
uses: docker/bake-action@v2
with:
targets: netlify-remove
set: |
*.cache-from=type=gha,scope=releaser
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_NAME: ${{ github.repository }}/${{ github.head_ref }}