Skip to content

Migrate cppreference pages #49

Migrate cppreference pages

Migrate cppreference pages #49

Workflow file for this run

name: Migrate cppreference pages
on:
issues:
types:
- opened
- labeled
workflow_dispatch:
inputs:
issue_number:
description: "Specific issue number to process (optional)"
required: false
type: string
jobs:
migrate:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issues' &&
(github.event.action == 'labeled') &&
contains(github.event.issue.labels.*.name, 'migrate-cppref-page'))
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run migration bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
IMGBB_API_KEY: ${{ secrets.IMGBB_API_KEY }}
run: npm run migrate