Skip to content

Commit

Permalink
Update web-vitals-init.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanrai authored Nov 18, 2024
1 parent 04c6c3d commit 1ef0cb9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/web-vitals-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
initialize-web-vitals:
if: inputs.initialize == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

Expand All @@ -36,9 +38,10 @@ jobs:
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" node ./web-vitals-check.js https://adobecom.github.io/caas/ --init-baseline
- name: Upload baseline artifact
uses: actions/upload-artifact@v3
with:
name: web-vitals-baseline
path: .github/web-vitals-history.json
retention-days: 90
- name: Commit baseline
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add .github/web-vitals-history.json
git commit -m "chore: update web vitals baseline"
git push

0 comments on commit 1ef0cb9

Please sign in to comment.