GitHub——Error: Process completed with exit code 126.

前言

如题,github的actions在执行脚本的时候提示权限不足,既然权限不足,那就赋予权限呗,于是查了下git文档,还真有这个命令;

git update-index: git update-index

内容

报错内容

Run ./build.sh
/home/runner/work/_temp/fc8e00a4-5d7c-4833-a2bb-5b7778b331a2.sh: line 1: ./build.sh: Permission denied
Error: Process completed with exit code 126.

修改权限

!> 修改完权限之后不要忘记重新上传代码

git update-index --chmod=+x build.sh

posted @ 2022-09-01 00:41  。思索  阅读(586)  评论(0编辑  收藏  举报