Skip to content

Update spec info

Update spec info #7328

Workflow file for this run

name: Update spec info
on:
schedule:
- cron: '10 */6 * * *'
workflow_dispatch:
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
# Need to checkout all history as job also needs to access the
# xxx-specs@latest branches
fetch-depth: 0
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Setup environment
run: npm ci
- name: Build new index file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build
- name: Test new index file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run test-index
- name: Bump minor version of packages if needed
run: node src/bump-packages-minor.js
- name: Commit updates
run: |
git config user.name "fetch-info bot"
git config user.email "<>"
git commit -m "[data] Update spec info" -a || true
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
- name: Prepare packages data
run: node src/prepare-packages.js
- name: Create/Update pre-release PR for web-specs
run: node src/prepare-release.js web-specs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create/Update pre-release PR for browser-specs
run: node src/prepare-release.js browser-specs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Following step runs even if a previous step failed to upload intermediary
# build files
- name: Store intermediary steps as artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: buildsteps
path: |
.buildsteps