首页  >  All tags  >  Github

Github Action Workflow 触发运行分析

目标🔗

单个 (或多个) Workflow 之间触发运行逻辑,搞清楚究竟是按照什么样的顺序运行。

最直接 on.<push>🔗

When using the push and pull_request events, you can configure a workflow to run based on what file paths are changed. Path filters are not evaluated for pushes of tags.

Use the paths filter when you want to include file path patterns or when you want to both include and exclude file path patterns. Use the paths-ignore filter when you only want to exclude file path patterns. You cannot use both the paths and paths-ignore filters for the same event in a workflow. If you want to both include and exclude path patterns for a single event, use the paths filter prefixed with the ! character to indicate which paths should be excluded.

If at least one path matches a pattern in the paths filter, the workflow runs. For example, the following workflow would run anytime you push a JavaScript file (.js).

→  继续阅读需要: 2 min

github不能正常连通,设置代理

突然发现无法使用 [email protected]:user/repo 推送或拉取代码了,之前明明可以。证明抽风了。解决方法只能上代理,晕啊。

方法一 创建 ~/.ssh/config🔗

Host github.com
    User git
    ProxyCommand connect -H 127.0.0.1:10809 %h %p

这是要求走http代理的设置,把端口改为你的代理端口

另一种是换成这个,强制走443端口利用https协议

Host github.com
 Hostname ssh.github.com
 Port 443

方法二 设置全局代理🔗

git config –global http.proxy protocol://127.0.0.1:port

git config --global http.proxy socks5h://127.0.0.1:1080

但这个方法对我无效

参考ref🔗