mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +00:00
fix: Order of git
fetch and checkout
This commit is contained in:
parent
2c3d3d0e6f
commit
a50a7789d4
1 changed files with 2 additions and 2 deletions
4
.github/workflows/gh-pages-cleanup.yaml
vendored
4
.github/workflows/gh-pages-cleanup.yaml
vendored
|
@ -16,10 +16,10 @@ jobs:
|
|||
- name: Delete directory in gh-pages
|
||||
if: github.event.ref_type == 'branch'
|
||||
run: |
|
||||
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')
|
||||
if [ -d "./.unlighthouse/${branchName}" ]; then
|
||||
git fetch --all
|
||||
git checkout gh-pages
|
||||
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')
|
||||
if [ -d "./.unlighthouse/${branchName}" ]; then
|
||||
git rm -rf --ignore-unmatch "${branchName}"
|
||||
git commit -m "Cleanup directory for deleted branch ${branchName}"
|
||||
git push origin gh-pages
|
||||
|
|
Loading…
Reference in a new issue