[M] Validate all sessions #4
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: "[M] Validate all sessions" | |
on: | |
workflow_dispatch: | |
inputs: | |
validation: | |
description: 'Validate only scheduling conflicts (default) or re-validate all sessions' | |
required: true | |
default: 'scheduling' | |
type: choice | |
options: | |
- scheduling | |
- everything | |
jobs: | |
validate-grid: | |
name: Validate session grid | |
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: Validate grid and update project fields | |
run: npx tpac-breakouts validate all --what ${{ inputs.validation }} | |
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 }} | |
# A valid Personal Access Token (classic version) 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 }} | |