Skip to content

Commit

Permalink
New origin-trials data, script, and UI
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Dec 13, 2024
1 parent 9184bcf commit 4b31720
Show file tree
Hide file tree
Showing 6 changed files with 1,018 additions and 4,744 deletions.
4 changes: 4 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import specs from "browser-specs" with { type: "json" };
import mdnInventory from "@ddbeck/mdn-content-inventory";
import mdnDocsOverrides from "./additional-data/mdn-docs.json" with { type: "json" };
import standardPositions from "./additional-data/standard-positions.json" with { type: "json" };
import originTrials from "./additional-data/origin-trials.json" with { type: "json" };

const BROWSER_BUG_TRACKERS = {
chrome: "issues.chromium.org",
Expand Down Expand Up @@ -150,6 +151,9 @@ function augmentFeatureData(id, feature) {
// Add standard positions.
feature.standardPositions = standardPositions[id];

// Add origin trials.
feature.originTrials = originTrials[id];

// Add the BCD data to the feature.
feature.bcdData = bcdKeysData;
feature.bcdTags = [...new Set(bcdTags)];
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/update-origin-trials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update origin trials

on:
push:
branches: [main]
schedule:
# Run once a week.
- cron: '0 12 * * 1'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check-out the repository
uses: actions/checkout@v4

- name: Install dependencies
if: ${{ github.event_name == 'push' }}
run: npm ci

- name: Run the update-origin-trials script
if: ${{ github.event_name != 'push' }}
run: node additional-data/scripts/update-origin-trials.js

- name: Commit changes
if: ${{ github.event_name != 'push' }}
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "Refresh OTs" --allow-empty
git push origin main
Loading

0 comments on commit 4b31720

Please sign in to comment.