-
Notifications
You must be signed in to change notification settings - Fork 59.6k
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
86 changed files
with
595 additions
and
569 deletions.
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
Validating CODEOWNERS rules …
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
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 |
---|---|---|
@@ -1,18 +1,40 @@ | ||
name: Browser Tests | ||
|
||
on: [push] | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
see_if_should_skip: | ||
runs-on: ubuntu-latest | ||
# Map a step output to a job output | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@a12175f6209d4805b5a163d723270be2a0dc7b36 | ||
with: | ||
cancel_others: 'false' | ||
github_token: ${{ github.token }} | ||
paths: '["assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]' | ||
build: | ||
needs: see_if_should_skip | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
# Each of these ifs needs to be repeated at each step to make sure the required check still runs | ||
# Even if if doesn't do anything | ||
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }} | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install | ||
|
||
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }} | ||
name: Install | ||
uses: ianwalter/puppeteer@3.0.0 | ||
with: | ||
args: npm ci | ||
- name: Test | ||
|
||
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }} | ||
name: Test | ||
uses: ianwalter/puppeteer@3.0.0 | ||
with: | ||
args: npm run browser-test | ||
args: npm run browser-test |
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,52 @@ | ||
# Please ping @github/docs-localization in the PR whenever you update this file! | ||
|
||
name: Crowdin Sync | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync_with_crowdin: | ||
name: Sync with Crowdin | ||
if: github.repository == 'github/docs-internal' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Sync | ||
uses: crowdin/github-action@1.0.10 | ||
with: | ||
upload_translations: false | ||
download_translations: true | ||
create_pull_request: true | ||
|
||
# Using a custom config temporarily to avoid clobbering the existing crowdin.yml | ||
# that is used by the github-help-docs OAuth integration. | ||
config: 'crowdin-actions-config.yml' | ||
|
||
# This is the name of the git branch that Crowdin will create when opening a pull request. | ||
# This branch does NOT need to be manually created. It will be created automatically by the action. | ||
localization_branch_name: automated-crowdin-translations | ||
|
||
# This is the name of the top-level directory that Crowdin will use for files. | ||
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project. | ||
# This branch does NOT need to be manually created. It will be created automatically by the action. | ||
crowdin_branch_name: crowdin-main | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string | ||
# See "API v2" on https://crowdin.com/project/<your-project>/settings#api | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
|
||
# A personal access token, not to be confused with Crowdin API v1 "API key" | ||
# See https://crowdin.com/settings#api-key to generate a token | ||
# This token was created by logging into Crowdin with the octoglot user | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: ['closed'] | ||
|
||
jobs: | ||
|
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.