Skip to content

Workflow file for this run

name: Cleanup Preview
on:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Remove Docker Container
run: |
ssh [email protected] "docker rm -f preview-${{ github.head_ref }}"
- name: Remove NGINX Configuration
run: |
ssh [email protected] "bash /home/phil/scripts/cleanup_nginx.sh ${{ github.head_ref }}"
- name: Remove DNS Record in Cloudflare
with:
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
zoneId: ${{ secrets.CLOUDFLARE_ZONE_ID }}
run: |

Check failure on line 24 in .github/workflows/cleanup.yml

View workflow run for this annotation

GitHub Actions / Cleanup Preview

Invalid workflow file

The workflow is not valid. .github/workflows/cleanup.yml (Line: 24, Col: 9): Unexpected value 'run' .github/workflows/cleanup.yml (Line: 19, Col: 9): Required property is missing: uses
cloudflare-cli dns delete "${{ github.head_ref }}.preview.t7lab.com"