从外部仓库触发工作流程 [英] Trigger workflow from external repo

查看:62
本文介绍了从外部仓库触发工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以根据对我的回购请求的推送来触发工作流程

I can trigger a workflow based on a push to my repo with

on:
  push

当有人推送到我没有推送访问权限的另一个公共仓库时,是否可以触发工作流,例如 phpmyadmin ?

Is it possible to trigger a workflow when there is a push to another public repo that I don't have push access to, such as phpmyadmin?

推荐答案

我很确定答案是否定的,您不能以编程方式将一个存储库预订到另一个存储库的事件.

I'm pretty sure the answer is no, you can't programmatically subscribe one repo to another repo's events.

但是您可以执行

However what you could do is run a scheduled job (once per day, or more frequently if you need) to check for any updates. You could store the last known SHA in your repo, then update it via a PR or direct commit when the action detects an update.

这类似于 https://dependabot.com/之类的工具.

这篇关于从外部仓库触发工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆