Skip to content

Commit b3b8ad7

Browse files
committed
Create a workflow for maintaining a list of labeled tests in-repo
1 parent ed4dfd5 commit b3b8ad7

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/labels.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
const response = await fetch('https://wpt.fyi/api/metadata?includeTestLevel=true&product=chrome');
3+
const labels = await response.json();
4+
5+
console.log(labels);

.github/workflows/labels.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: release
2+
on: workflow_dispatch
3+
jobs:
4+
prepare:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
with:
9+
fetch-depth: 0
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: 16
13+
- run: npm ci
14+
- name: git config
15+
run: |
16+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
17+
git config user.name "github-actions[bot]"
18+
- run: node release.js --no-fetch --no-prompt
19+
env:
20+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
21+
env:
22+
FORCE_COLOR: 3

0 commit comments

Comments
 (0)