feat(lighthouse): update lighthouse badges #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Lighthouse Badges | |
on: | |
push: | |
branches: | |
- lighthouse-badges | |
jobs: | |
generate-lighthouse-badges: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Run Lighthouse and generate badges | |
run: | | |
make lighthouse-badges | |
- name: Push badges to repo | |
run: | | |
git config --global user.name "GitHub Action" | |
git config --global user.email "[email protected]" | |
git add ./docs/lighthouse | |
git commit -m "Update Lighthouse badges" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |