Skip to content

Commit

Permalink
Merge pull request #6 from milespetrov/test02
Browse files Browse the repository at this point in the history
Add wait for github pages bot to complete
  • Loading branch information
milespetrov authored Aug 26, 2024
2 parents 81497b5 + 7d6c0de commit 9091e73
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
tags:
- v**

concurrency:
group: ${{ github.head_ref || github.run_id }}

jobs:
docs:
name: Create documentation
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/pages-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request_target:
types: [closed]

concurrency:
group: ${{ github.head_ref || github.run_id }}

jobs:
cleanup-pages:
name: Cleanup GitHub pages
Expand Down Expand Up @@ -31,7 +34,7 @@ jobs:
fi
## Delete the PR demo from gh-pages when the PR is closed
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: 'gh-pages'

Expand All @@ -40,6 +43,11 @@ jobs:
run: |
git config --global user.email "miles.petrov@ec.gc.ca"
git config --global user.name "Miles Petrov"
git rm -r ${{ github.head_ref }}/*
git pull --ff-only origin gh-pages
if [ -d "${{ github.head_ref }}" ]; then
git rm -r "${{ github.head_ref }}/*" || true
else
echo "Directory ${{ github.head_ref }} does not exist or contains invalid characters."
fi
git commit -a -m 'Delete PR demo ${{ github.head_ref }}'
git push origin HEAD:gh-pages
git push -f origin HEAD:gh-pages
8 changes: 0 additions & 8 deletions enhance.bat

This file was deleted.

6 changes: 0 additions & 6 deletions miles.bat

This file was deleted.

6 changes: 0 additions & 6 deletions nuns.bat

This file was deleted.

0 comments on commit 9091e73

Please sign in to comment.