github - 在本地测试 Github 操作,没有这样的文件或目录
问题描述
我正在尝试使用 act 在本地测试具有特定分支(不是v1)的自定义 github 操作,但我收到关于没有此类文件或目录的错误。
我确保已将 node_modules 添加到我在 github 的分支中,但是当我尝试在本地运行操作时:
- uses: super-cool-action@nonv1-branch
run act :
Run cool-action@nonv1-branch
git clone 'https://github.com/custom-action' # ref=nonv1-branch
docker cp src=/Users/user1/.cache/act/custom-action@nonv1-branch/ dst=/var/run/act/actions/custom-action@nonv1-branch/
docker exec cmd=[mkdir -p /var/run/act/actions/custom-action@nonv1-branch/] user=
Failure - custom-action@nonv1-branch
Error: open /Users/user1/.cache/act/custom-action@nonv1-branch/node_modules/.bin/acorn: no such file or directory
如果我打开./bin/acorn这就是我得到的:
../acorn/bin/acorn
如何解决这个问题?
解决方案
推荐阅读
- android - 如何获取月份的开始日期和结束日期?
- javascript - 用于从对象数组创建数组的 Vanilla Javascript
- python - 如何使用 tensorflow.dataset 模块生成随机大小的裁剪
- java - 没有做任何活动的会话超时
- python-3.x - 必须运行 readlines() 后跟 read()。有没有更有效的方法
- java - 使用 JSoup 解析网页时出现过早的 EOF 错误
- xml - 在 XML 中转义反斜杠并使用 XSLT 拆分为单独的 xml 节点
- vue.js - 将变量连接到字符串时出现语法错误
- c# - 如何使 WPF 崩溃的应用程序立即关闭(立即是关键字)?
- android - ANDROID HttpURLConnection 总是使用 GET