以下是我的 yml 文件失败的部分。
pull-request:
needs: regression-tests
name: Development to Master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: checkout
- uses: repo-sync/pull-request@v2
name: pull-request
with:
destination_branch: "master"
pr_title: "Pulling ${{ github.ref }} into master"
pr_body: "*An automated PR test*"
pr_reviewer: "Kev"
pr_draft: true
github_token: ${{ secrets.PullRequest }}
这是我在日志中看到的
<块引用>2021-05-26T10:25:10.0613353Z ##[section]Starting: Request a runner to run this job
2021-05-26T10:25:10.4927450Z Can't find any online and idle self-hosted runner in current repository that matches the required
标签:'ubuntu-latest' 2021-05-26T10:25:10.4927569Z 在当前存储库的帐户/组织中找不到任何在线和空闲的自托管运行器 匹配所需的标签:'ubuntu-latest' 2021-05-26T10:25:10.4928148Z 在当前存储库的帐户/组织中找到符合要求的在线和空闲托管运行器 标签:'ubuntu-最新' 2021-05-26T10:25:10.6935866Z ##[section]Finishing: 请求一个跑步者来运行这个工作 2021-05-26T10:25:18.9831794Z 当前跑步者版本:'2.278.0' 2021-05-26T10:25:18.9861037Z ##[组]操作系统 2021-05-26T10:25:18.9862046Z Ubuntu 2021-05-26T10:25:18.9862461Z 20.04.2 2021-05-26T10:25:18.9862889Z LTS 2021-05-26T10:25:18.9863336Z ##[endgroup] 2021-05-26T10:25:18.9864044Z ##[group]虚拟环境 2021-05-26T10:25:18.9864687Z 环境:ubuntu-20.04 2021-05-26T10:25:18.9865181Z 版本:20210524.1 2021-05-26T10:25:18.9866149Z 包含的软件:https://github.com/actions/virtual-environments/blob/ubuntu20/20210524.1/images/linux/Ubuntu2004-README.md 2021-05-26T10:25:18.9867437Z 图片发布:https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210524.1
请问您对可能出现的问题有什么想法吗?
答案 0 :(得分:0)
此编辑后的代码现在可以使用
pull-request:
needs: regression-tests
name: Github Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: pull-request
uses: repo-sync/pull-request@v2
with:
destination_branch: "master"
pr_title: "Pulling ${{ github.ref }} into master"
pr_body: "? *An automated PR test*"
pr_reviewer: "Kev"
github_token: ${{ secrets.GITHUB_TOKEN }}