Skip to content

Git Permissions Issue #20

@LandonSchropp

Description

@LandonSchropp

Hey there Crazy Max. I'm trying to publish the contents of my build folder using this action. Here's my configuration:

name: Publish
uses: crazy-max/ghaction-github-pages@v1
with:
  target_branch: gh-pages
  build_dir: build
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

When I get to the publish action, I run into this error:

🏃 Deploying build directory to gh-pages branch on LandonSchropp/landonschropp.com repo
git init
/home/runner/work/landonschropp.com/landonschropp.com/build/.git: Permission denied
##[error]The process 'git' failed with exit code 1
##[error]Node run failed with exit code 1

It looks like the error is happening here. However, I can't figure out why the build directory would have any weird permissions. Did the action somehow get pointed the wrong place? Any ideas?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions