-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.64 KB
/
view-event.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "[M] View current schedule"
on:
workflow_dispatch:
jobs:
view-event:
name: View the current schedule
runs-on: ubuntu-latest
steps:
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout latest version of release script
uses: actions/checkout@v4
with:
ref: main
- name: Install dependencies
run: npm ci
- name: Create directory to store result
run: mkdir .schedule
- name: Generate the HTML page
run: npx tpac-breakouts view --format html > .schedule/index.html
env:
# URL of the annual TPAC XXXX breakout project.
# The PROJECT_OWNER and PROJECT_NUMBER variables must be defined on
# the repository. PROJECT_OWNER_TYPE needs to be set to "user" if
# project belongs to a user. It may be omitted otherwise (or set to
# 'org"').
PROJECT_OWNER: ${{ vars.PROJECT_OWNER_TYPE || 'organization' }}/${{ vars.PROJECT_OWNER || 'w3c' }}
PROJECT_NUMBER: ${{ vars.PROJECT_NUMBER }}
# Same valid Personal Access Token (classic version) as above, with
# project and public_repo scope.
GRAPHQL_TOKEN: ${{ secrets.GRAPHQL_TOKEN }}
GH_TOKEN: ${{ secrets.GRAPHQL_TOKEN }}
# Mapping between chair GitHub identities and W3C IDs must be stored
# in a variable. Structure is a JSON object with identities as keys.
W3CID_MAP: ${{ vars.W3CID_MAP }}
- name: Create ZIP artifact
uses: actions/upload-artifact@v4
with:
name: schedule
path: .schedule