Skip to content

Commit f41854c

Browse files
committed
Comment the script, fix README
1 parent 0be3b57 commit f41854c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/sync

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
#!/usr/bin/env bash
22

3+
# This script implements a two-way mirroring bewteen a GH wiki for a repo `R`
4+
# (called `DOTREMOTE` below) with a public repo `R-wiki` (intended for external
5+
# contributions, called `DASHREMOTE` below). See `sync.yml` for how it is
6+
# triggered: it is a minimal-ish yaml file that should be added to both sides
7+
# (`R` and `R-wiki`), with a `push` trigger on `R-wiki` (and optionally a
8+
# schedule) and a `gollum` trigger on `R`. The action spec is careful to
9+
# always checkout `R-wiki` (`DASHREMOTE`) since checking out `R` would be
10+
# useless. It then merges in changes in `DOTREMOTE` and pushes the results to
11+
# both. Pushing the merged version will trigger an action on the other side,
12+
# but that would be very quick (both the `merge` and pushing it will be
13+
# no-ops.)
14+
315
set -ue
416
shopt -s extglob
517

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## The TypeScript wiki
22

3-
This repo is a mirror of [the TypeScript wiki](https://github.com/Microsoft/TypeScript/wiki).
4-
Changes on either the wiki or this repo are immediately mirrored to the other side.
5-
This is done in a GitHub Action [here](.github/workflows/sync.yml), and [another](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/ci.yml) in the TS repo.
3+
> This repo is a mirror of [the TypeScript wiki](https://github.com/Microsoft/TypeScript/wiki).
4+
> Changes on either the wiki or this repo are immediately mirrored to the other side.
5+
> This is done in a GitHub Action [here](.github/workflows/sync.yml), and [another](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/sync-wiki.yml) in the TS repo, and the main work is done by a [`sync` script](.github/workflows/sync).
66
77
The wiki root is [Home.md](./Home.md).
88

0 commit comments

Comments
 (0)