-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,497 changed files
with
70,741 additions
and
167,712 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: prepare | ||
description: Prepare Yarn and caches | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Allow modern Yarn | ||
run: corepack enable | ||
shell: bash | ||
# Dependencies manually cached because `actions/setup-node@v3` does not support corepack | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.yarn/cache | ||
key: wiki-dependencies-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
wiki-dependencies | ||
- name: Install dependencies | ||
run: yarn | ||
shell: bash | ||
# Artifacts cached after install to prevent removal by Yarn | ||
- name: Cache build artifacts | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules/.cache | ||
key: wiki-build-artifacts |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: clear | ||
|
||
on: | ||
workflow_dispatch: | ||
issue_comment: | ||
types: [created] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.issue.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
clear: | ||
if: | | ||
github.event_name == 'workflow_dispatch' || | ||
( | ||
github.event.issue.pull_request && | ||
contains(github.event.comment.body, '/clear-build') | ||
) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.issue.pull_request && format('refs/pull/{0}/merge', github.event.issue.number) || '' }} | ||
- name: Prepare Yarn | ||
uses: ./.github/actions/prepare/ | ||
- name: Clear Docusaurus build cache | ||
run: yarn clear | ||
- name: Prepare build | ||
run: yarn prepare | ||
shell: bash | ||
- name: Build | ||
run: yarn build | ||
# Create a comment on the pull request that the clear build completed | ||
- name: Comment on pull request | ||
if: github.event_name != 'workflow_dispatch' | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `Clear build has completed and caches have been renewed.` | ||
}) |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.