diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml new file mode 100644 index 00000000000..a10335070b0 --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -0,0 +1,21 @@ +name: Sync Two Wiki Repos + +on: [gollum] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Get repo name + run: R=${GITHUB_REPOSITORY%?wiki}; echo "BASENAME=${R##*/}" >> $GITHUB_ENV + - name: Checkout ${{ env.BASENAME }}-wiki + uses: actions/checkout@v2 + with: + repository: "${{ GITHUB.repository_owner }}/${{ env.BASENAME }}-wiki" + token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} + fetch-depth: 0 + - name: Run sync + run: ./.github/workflows/sync + env: + PUSHER: typescript-bot + AUTH: ${{ secrets.TS_BOT_GITHUB_TOKEN }}