groovy - 如何创建一个 groovy 文件来搜索 PR 中的特定文件
问题描述
我想创建一个 groovy 程序,它检查 Pull Requests(In CI) 中的特定文件并在找到时执行命令.. 这样的逻辑.. 但无法运行它。
filecheck()
{
fileExists("./.github/codeql/codeql-config.yml")
}
如果找到文件需要执行这个命令
" codeql-runner init --repository githubreponame --github-url https://github.com
"
任何参考链接将不胜感激。
解决方案
推荐阅读
- java - Rabbitmq java客户端消费者handleDelivery方法没有被调用
- django - 如何更改应用程序模型显示在 Django 管理界面下
- sql - 窗口函数和通过复杂的数据操作计算平均值
- c++ - 在 list merge() 中如何调用没有 '()' 比较函数?
- python-3.x - 有没有办法在 python 3.7.1 中从用户 input() 创建一个 dict 对象?
- algorithm - 如何解决达到矩阵问题结束所需的最小步骤?
- node.js - 如何使用 node 或 Express 返回 JSON
- javascript - 如何在本机反应中修复“.then 不是函数”
- html - 在列表视图中打开和关闭可展开按钮
- android - 我的 kotlin 代码出现问题...有人可以检查我的代码吗?