-
Notifications
You must be signed in to change notification settings - Fork 74
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
1 parent
9df0579
commit 7c50d00
Showing
4 changed files
with
59 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
name: Doc | ||
description: Generate comments | ||
description: Generate comments. | ||
|
||
inputs: | ||
target-path: | ||
description: The path to generate comments, if set, will skip clone & pr | ||
default: "" | ||
github-token: | ||
description: The github token | ||
description: > | ||
GITHUB_TOKEN (permissions contents: write and pull-requests: write) or a repo scoped Personal Access Token (PAT). | ||
required: true | ||
|
||
target-repo: | ||
description: Relative path under GITHUB_WORKSPACE to the repository. | ||
|
||
target-branch: | ||
description: Sets the pull request base branch. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Generate comments | ||
uses: AgoraIO-Extensions/actions/.github/actions/doc@main | ||
with: | ||
target-repo: ${{ github.repository }} | ||
target-branch: ${{ github.ref_name }} | ||
target-path: ${{ inputs.target-path }} | ||
github-token: ${{ inputs.github-token }} | ||
target-repo: ${{ inputs.target-repo }} | ||
target-branch: ${{ inputs.target-branch }} | ||
config: fmt_config/fmt_ts.yaml | ||
language: ts | ||
base-template-url: https://github.com/AgoraIO/agora_doc_source/releases/download/master-build/electron_ng_json_template_en.json | ||
export-file-path: ts/AgoraSdk.ts | ||
github-token: ${{ inputs.github-token }} | ||
pre-pr-command: | | ||
rm -rf iris-doc | ||
yarn lint --fix |
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,29 @@ | ||
name: Update dependencies | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dependencies-content: | ||
description: The content of dependencies | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Update dependencies | ||
id: dep | ||
uses: AgoraIO-Extensions/actions/.github/actions/dep@main | ||
with: | ||
github-token: ${{ secrets.GH_TOKEN }} | ||
target-branch: ${{ github.ref_name }} | ||
dependencies-content: ${{ inputs.dependencies-content }} | ||
target-files: | | ||
package.json |
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