mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-05-04 02:31:20 +00:00
refactor: Use Bot as commit author
This commit is contained in:
parent
4ae2cb1f3c
commit
88306eb291
1 changed files with 1 additions and 3 deletions
4
.github/workflows/gh-pages-cleanup.yaml
vendored
4
.github/workflows/gh-pages-cleanup.yaml
vendored
|
@ -20,14 +20,12 @@ jobs:
|
||||||
- name: Delete directory in gh-pages
|
- name: Delete directory in gh-pages
|
||||||
if: github.event.ref_type == 'branch'
|
if: github.event.ref_type == 'branch'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "support@github.com"
|
|
||||||
git config --global user.name "cleanup[bot]"
|
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')
|
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')
|
||||||
if [ -d "./${branchName}" ]; then
|
if [ -d "./${branchName}" ]; then
|
||||||
git rm -rf --ignore-unmatch "${branchName}"
|
git rm -rf --ignore-unmatch "${branchName}"
|
||||||
git commit -m "Cleanup directory for deleted branch ${branchName}"
|
git commit -m "Cleanup directory for deleted branch ${branchName}" --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||||
git push origin gh-pages
|
git push origin gh-pages
|
||||||
else
|
else
|
||||||
echo "Directory doesn't exist for branch ${branchName}"
|
echo "Directory doesn't exist for branch ${branchName}"
|
||||||
|
|
Loading…
Reference in a new issue