Update browser-specs #1295
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: Update browser-specs | |
on: | |
workflow_dispatch: | |
schedule: | |
# https://crontab.guru/#5_8_*_*_* | |
- cron: "5 8 * * *" | |
# Conditional runs | |
# https://stackoverflow.com/a/61832535/2460034 | |
jobs: | |
update-webref: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- run: npm ci | |
- run: npm i browser-specs@latest | |
- id: git-diff | |
run: git diff --quiet HEAD | |
continue-on-error: true | |
- name: Commit files | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git diff-index --quiet HEAD || git commit -m "chore(package): update browser-specs" | |
git push | |