Skip to content

add workflow to delete PR preview from server storage #1

add workflow to delete PR preview from server storage

add workflow to delete PR preview from server storage #1

name: Delete PR preview
on:
pull_request_target:
branches: ['main']
types: ['closed']
jobs:
preview_delete:
name: Delete preview
runs-on: ubuntu-latest
steps:
- name: delete-preview
run: curl --fail -X DELETE -H "Authorization: Bearer ${{ secrets.UPLOAD_TOKEN }}" https://docs.tds.cscs.ch/upload?path={{ github.event.pull_request.number }}

Check failure on line 13 in .github/workflows/docs_preview_delete.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs_preview_delete.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13