mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-28 07:51:20 +00:00
Merge pull request #38 from bartvdbraak/feat/unlighthouse
Use Bot as commit author
This commit is contained in:
commit
a041503ffb
2 changed files with 2 additions and 4 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}"
|
||||||
|
|
2
.github/workflows/lighthouse-report.yaml
vendored
2
.github/workflows/lighthouse-report.yaml
vendored
|
@ -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: |
|
||||||
|
|
Loading…
Reference in a new issue