From a03ebe6a8f3f5bf01c0914bbf1e26fab636c0ab7 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 12 Jun 2023 02:56:35 +0200 Subject: [PATCH] fix: Added concurrency and git author --- .github/workflows/gh-pages-cleanup.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/gh-pages-cleanup.yaml b/.github/workflows/gh-pages-cleanup.yaml index b107bf5..d031bc8 100644 --- a/.github/workflows/gh-pages-cleanup.yaml +++ b/.github/workflows/gh-pages-cleanup.yaml @@ -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/,,')