Yikun / hub-mirror-action

一个Github Action,用于在Github和Gitee之间同步代码。Action for mirroring repos between Hubs (like Github and Gitee).
MIT License
633 stars 173 forks source link

应该如何避免总任务超时 #176

Closed EzrealJ closed 1 year ago

EzrealJ commented 1 year ago

如题

执行的环节出现了一些问题,原因不明,但总的任务卡住直到达到github action时间上限。 The job running on runner GitHub Actions 2 has exceeded the maximum execution time of 360 minutes.

引用action https://github.com/WebApiClient/WebApiClientWiki/actions/runs/4876538051 workflow如下

name: Sync Github Repos To Gitee
on:
  push:
  workflow_dispatch:
  schedule:
    - cron: "0 * * * *"
jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - name: Organization mirror
        uses: Yikun/hub-mirror-action@master
        with:
          src: github/webapiclient
          dst: gitee/webapiclient
          dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
          dst_token: ${{ secrets.GITEE_TOKEN }}
          account_type: org

我并未配置任何超时参数。

Yikun commented 1 year ago

@EzrealJ 感谢反馈,这个问题有点奇怪,我能想到的唯一的原因就是Github Action的runner有临时故障,卡住了。

你把这个开关打开,后续出问题的时候,再comments下,再一起看看。

debug: true
EzrealJ commented 1 year ago

观察了几天,没有再出现过,暂时先关闭吧。