Merge pull request #38 from bartvdbraak/feat/unlighthouse

Use Bot as commit author
This commit is contained in:
Bart van der Braak 2023-06-12 04:21:24 +02:00 committed by GitHub
commit a041503ffb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -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}"

View file

@ -56,7 +56,7 @@ jobs:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with: with:
deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }} deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }}
timeout: 30 timeout: 60
- name: Build Unlighthouse report - name: Build Unlighthouse report
run: | run: |