forked from moodle/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 947 Bytes
/
update-wikimedia.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
name: "CI - Push the list of migrated pages to WikiMedia"
on:
push:
branches:
- main
workflow_dispatch:
inputs:
debug:
type: boolean
required: false
description: 'Set the debug mode'
jobs:
run:
# Only run on the canonical repository.
if: github.repository == 'moodle/devdocs'
name: Push migated pages to Wikimedia
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Run update script
run: yarn wikimedia-sync push-migrated
env:
DEBUG: ${{ github.event.inputs.debug }}
WIKIMEDIA_DEBUG: ${{ github.event.inputs.debug }}
WIKIMEDIA_SECRET: ${{ secrets.WIKIMEDIA_PASSWORD }}
WIKIMEDIA_USER: ${{ secrets.WIKIMEDIA_USER }}