mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-18 05:49:49 +01:00
ci/docs-preview: double check preview directory deletion
This commit is contained in:
parent
6097f7eb11
commit
9c8fbc774f
1 changed files with 13 additions and 0 deletions
13
.github/workflows/docs-preview.yml
vendored
13
.github/workflows/docs-preview.yml
vendored
|
@ -164,6 +164,19 @@ jobs:
|
|||
needs: cleanup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Double check preview directory deletion
|
||||
run: |
|
||||
# Check if the preview directory exists, and delete it if it does
|
||||
if [ -d "docs-preview-${{ github.event.pull_request.number }}" ]; then
|
||||
echo "Something went wrong, preview directory is not deleted."
|
||||
exit 1
|
||||
else
|
||||
echo "Preview directory has been deleted successfully, proceeding."
|
||||
fi
|
||||
|
||||
- name: Post cleanup verification
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue