-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.16 KB
/
weekly-lighthouse-audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Weekly Lighthouse Audit
on:
schedule:
- cron: '0 21 * * 4'
jobs:
weekly-lighthouse:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
repository: 'cascandaliato/lighthouse-reports'
ref: master
persist-credentials: false
- name: Audit URLs using Lighthouse 💡🏡
id: LHCIAction
uses: treosh/lighthouse-ci-action@v7
with:
urls: 'https://cascandaliato.com'
uploadArtifacts: true
temporaryPublicStorage: true
- run: cp ${{steps.LHCIAction.outputs.resultsPath}}/lhr*.json $GITHUB_WORKSPACE/cascandaliato.com.json
- name: Commit files
run: |
git config --local user.name "cascandaliato"
git config --local user.email "8927157+cascandaliato@users.noreply.github.com"
git add cascandaliato.com.json
git commit -m "Update lighthouse report for cascandaliato.com"
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: 'cascandaliato/lighthouse-reports'
github_token: ${{ secrets.PUSH_TOKEN }}