How to move a file from one folder to another folder through GitHub Actions?

726 Views Asked by At

I am trying to move a file from a folder to another through GitHub actions. I am doing this because I am building a jupyterbook pdf from this https://jupyterbook.org/en/stable/advanced/pdf.html. When I do it through pycharm and terminal, I can see my pdf has bene placed in the _build folder. But on github there is no _build folder??? So I had to make a GitHub action to move the PDF from this _build folder to a folder that I can see on GitHub. But it doesn't work. Here is the checks on my github action. Any ideas why the file is not moved ?enter image description here

Ideally I should commit this but I am not sure how.

1

There are 1 best solutions below

2
MeravigliaTitti On

I found that the problem was that after I had moved my file I wasn't committing.

I didn't know you had to commit in the github actions for the file to actually end up in the repo.