fix: Added concurrency and git author

This commit is contained in:
Bart van der Braak 2023-06-12 02:56:35 +02:00
parent e6d1b363e9
commit 9e6c6f93dd

View file

@ -6,6 +6,10 @@ on:
permissions:
contents: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
cleanup:
runs-on: ubuntu-latest
@ -16,6 +20,8 @@ jobs:
- name: Delete directory in gh-pages
if: github.event.ref_type == 'branch'
run: |
git config --global user.email "support@github.com"
git config --global user.name "cleanup[bot]"
git fetch --all
git checkout gh-pages
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')