Skip to content

Github Actions fail without home_page #63

@henkkuli

Description

@henkkuli

In a project without home_page, the automatically created Github Actions workflow fails in the step "Copy API documentation to home_page/docs" with the following error:

Run cp -r .lake/build/doc home_page/docs
  cp -r .lake/build/doc home_page/docs
  shell: /usr/bin/bash -e {0}
  env:
    HOME_PAGE_EXISTS: false
cp: cannot create directory 'home_page/docs': Permission denied
Error: Process completed with exit code 1.

After some debugging, I found that the preceding step "Build blueprint and copy to home_page/blueprint" runs its script as root and not the default build user. Part of that step is

mkdir -p home_page

which creates the directory with root permissions, making it inaccessible to the regular build user.

To fix this, it seems sufficient to create the home_page directory automatically in step "Check for home_page folder" if it doesn't exist already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions