nevstop-lab/Push Files to Repo
通过 Pull Request 将当前仓库的文件或文件夹推送到另一个仓库
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source_folder | 当前仓库中源文件或文件夹的路径,相对于仓库根目录。 | yes | — |
| destination_repo | 目标仓库,格式为 "owner/repo"。 | yes | — |
| destination_folder | 目标仓库中文件存放的路径,相对于仓库根目录。 | no | . |
| destination_base_branch | 目标仓库中创建 PR 所基于的基础分支。 | no | main |
| destination_head_branch | 在目标仓库中为 PR 创建的分支名称。 如果未指定,将自动生��唯一的分支名称。 | no | "" |
| token | 具有目标仓库 `repo` 权限的个人访问令牌(PAT)或 GitHub App Token。 跨仓库操作必填。请将其保存为 Secret 并引用 (例如 ${{ secrets.PAT }})。 | yes | — |
| commit_message | 目标仓库中文件变更的提交信息。 | no | chore: push files from source repository |
| pr_title | 在目标仓库中创建的 Pull Request 标题。 | no | [Automated] Push files from source repository |
| pr_body | Pull Request 的正文/描述。 | no | Automated PR created by [Push-Files-to-Repo](https://github.com/NEVSTOP-LAB/Push-Files-to-Repo) action. |
| git_user_name | 提交的 Git user.name。默认为 github-actions[bot]。 | no | github-actions[bot] |
| git_user_email | 提交的 Git user.email。默认为 github-actions bot 邮箱。 | no | 41898282+github-actions[bot]@users.noreply.github.com |
| cleanup | 如果设为 "true",在复制新文件前删除目标文件夹中的所有已有文件。 默认为 "false"(合并/覆盖)。 | no | false |
| draft | 如果设为 "true",创建草稿 Pull Request。 | no | false |
Outputs
| name | description |
|---|---|
| pr_number | 创建的 Pull Request 编号 |
| pr_url | 创建的 Pull Request URL |