我正在运行 GitHub Actions 工作流程,但由于以下错误而失败。
Unhandled exception:
FileSystemException: Cannot create file, path = '/github/home/.flutter' (OS Error: Permission denied, errno = 13)
Run Code Online (Sandbox Code Playgroud)
我查看了 GitHub Actions 的工作流语法,但找不到任何说明来解决这个问题。
我的构建文件看起来像这样:
name: Flutter CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: cirrusci/flutter:v1.7.8-hotfix.4
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: flutter pub get
working-directory: my_app
- name: Run tests
run: flutter test
Run Code Online (Sandbox Code Playgroud)