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.

2022-08-31T16:39:54.png

修改权限

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

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

2022-08-31T16:40:54.png

posted @ 2023-03-08 01:48:32 王洋 阅读(3723) 评论(0)
发表评论
昵称
邮箱
网址