mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
28 lines
669 B
YAML
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 }}
|