虽然是定时的,但也可以去 GitHub 控制台手动运行。打开 Actions,选择工作流名字进去,最后 Run workflow 就等待执行了。详细也可以看到脚本里打印出的日志,执行完毕再回到仓库查看是否有 json 文件生成。写在后面 以上只是演示,如果真要弄自己的 API 还是得对爬取的数据做一下处理,拓展一下是不是还可以用这种...
* Can be {@code UNKNOWN} if the value returned by GitHub is unknown from the API. * * @return status of the workflow run */ public Status getStatus() { return Status.from(status); } /** * Gets the conclusion of the workflow run. * * Can be {@code UNKNOWN} if the value ...
要在仓库默认分支以外的分支上运行工作流程,请使用--ref� �记。 gh workflow runworkflow--refbranch-name 要查看工作流程运行的进度,请使用run watch子命令,并从交互式列表中选择运行。 gh run watch 使用REST API 运行工作流程 使用REST API 时,应将inputs和ref配置为请求正文参数。 如果忽略输入,则使用...
Actions: api7/apisix Actions All workflows Showing runs from all workflows 301 workflow runs chore(deps): bump actions/checkout from 2.4.0 to 4.2.1 PR Lint#41:Pull request#58opened bydependabotbot October 8, 2024 11:0819s chore(deps): bump actions/checkout from 2.4.0 to 4.2.1...
gh workflow run workflow --ref branch-name 要查看工作流程运行的进度,请使用 run watch 子命令,并从交互式列表中选择运行。 gh run watch 使用REST API 运行工作流程 使用REST API 时,应将 inputs 和ref 配置为请求正文参数。 如果忽略输入,则使用工作流程文件中定义的默认值。 有关使用 REST API 的更多信...
Use the REST API to interact with workflow runs in GitHub Actions. About workflow runs in GitHub Actions You can use the REST API to view, re-run, cancel, and view logs for workflow runs in GitHub Actions. A workflow run is an instance of your workflow that runs when the pre-configured...
1 workflow 1.1 介绍 工作流程是一个可配置的自动化过程,它将运行一个或多个作业。 工作流程由签入到存储库的 YAML 文件定义,并在存储库中的事件触发时运行,也可以手动触发,或按定义的时间表触发。 工作流程在存储库的 .github/workflows 目录中定义,存储库可以有多个工作流程,每个工作流程都可以执行不同的任务...
除了运行计划事件之外,还可以使用workflow_dispatch事件手动触发工作流。 通过此事件,可以使用 GitHub REST API 或通过选择 GitHub 上存储库中“操作”选项卡中的“运行工作流”按钮来运行工作流。使用workflow_dispatch,你可以选择要在哪个分支上运行工作流,还可以设置 GitHub 在 UI 中以窗体元素显示的可选inputs。
你可以配置一个 GitHub Actions 工作流(workflow),它会在你的仓库发生某个事件时被触发,就比如一个 pull request 或者一个 issue 被创建的时候。 你的工作流包含一个或者多个任务(jobs), 它们可以并行或者串行执行。每一个任务(jobs)都会在它自己的虚拟机运行器(runner)上,任务可以有一个或者多个步骤(steps),可...
- uses: actions/download-artifact@v2 with: name: agileconfig-ui path: AgileConfig.Server.Apisite/wwwroot/ui 这个命令跟上面的upload一样简单。 name:需要下载的artifact的名称 path:下载后存储数据的path。这个path还是相对repository的。 完整的yml# 下面是workflow的完整yml配置: name: master ci workflow on...