Skip to content

Can GitHub actions directly edit files in a repository? #25234

Closed Answered by vidavidorra
jpadfield asked this question in Actions
Discussion options

You must be logged in to vote

Looking at the logs it looks like the code fialed becuase there was noting to commit from the Commit files section.

On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
##[error]Process completed with exit code 1.

Meaning that the folder ./docs doesn’t seem to exist at that location. I’m not familiar with PHP at all but could it be that the php build.php creates the docs (I assume) in build/docs?
What happens if you run that command locally? Or add ls -la ./build or something like that to the workflow to debug.

Replies: 11 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@shner-elmo
Comment options

@mgilardi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
1 reply
@jairamjidgekar
Comment options

Comment options

You must be logged in to vote
3 replies
@jairamjidgekar
Comment options

@jpadfield
Comment options

@airtower-luna
Comment options

Comment options

You must be logged in to vote
1 reply
@jairamjidgekar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jpadfield
Comment options

@airtower-luna
Comment options

@sowmyareddyu
Comment options

@airtower-luna
Comment options

@Encephala
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
10 participants