git

Git 仓库中脚本无执行权限问题的解决方法

0 条评论 GitHub git shenke

参考

why-when-i-use-github-actions-ci-for-a-gradle-project-i-face-gradlew-permiss

问题描述

由于在 Windows 环境下写脚本时对权限问题不太敏感,并没有为仓库中的脚本赋予执行权限,因此在 actions 执行过程中报了以下错误

/home/runner/work/_temp/35b69792-52fd-48f2-9411-ec8be68d25ef.sh: line 1: /home/runner/work/bark-action/bark-action/.//script.sh: Permission denied
Error: Process completed with exit code 126.