Closed freearhey closed 1 year ago
Can you copy/paste the full log?
In the logs it looks like you're running version 4.1.1, have you tried the latest version? Can you try using a personal access token as opposed to tibdex/github-app-token@v1
and see if you still encounter the issue?
If that doesn't work can you please create a repo that I can use to reproduce the issue?
Test repo: https://github.com/iptv-org/github-pages-deploy-action-test
Changing the version to v4.2.5
and using PAT instead of app token did not help: https://github.com/iptv-org/github-pages-deploy-action-test/runs/5321614305?check_suite_focus=true
But after some more tests, I found out that the error appears only when there is a repo-sync/pull-request
action in the list (and only in this order):
https://github.com/iptv-org/github-pages-deploy-action-test/runs/5321712342?check_suite_focus=true
But if you put repo-sync/pull-request
at the end, everything works fine:
https://github.com/iptv-org/github-pages-deploy-action-test/runs/5321744278?check_suite_focus=true
If you have a spare moment, do you mind trying JamesIves/github-pages-deploy-action@releases/v4-permission
? I'm testing a variation of this which writes 777
to the folder that is set to be deployed which may fix this problem for you.
Unfortunately, the result is the same: https://github.com/iptv-org/github-pages-deploy-action-test/runs/5373757065?check_suite_focus=true
Thanks for double checking that. The error indicates that somewhere in the git flow something is being run as root according to SO but I don't see where anything in either repo-sync or this action is performing that step. The closest thing is that the temporary deployment directory gets chmodded but that shouldn't have any baring over the git logs.
Give me some time and I'll see what I can come up with, it's a pretty packed week for me so I may not get to this until the weekend.
No problem. I've already changed the order in which the actions are called in the main repository and so far it's working fine.
I am facing the same issue, but I only use actions/cache@v3
, actions/checkout@v3
actions/setup-node@v3
besides this one. So the problem seems not be related by repo-sync/pull-request
Here is my log:
https://github.com/vuepress-theme-hope/vuepress-theme-hope/runs/5827815705?check_suite_focus=true
And it failed.
I am facing the same issue, but I only use
actions/cache@v3
,actions/checkout@v3
actions/setup-node@v3
besides this one. So the problem seems not be related by repo-sync/pull-requestHere is my log:
https://github.com/vuepress-theme-hope/vuepress-theme-hope/runs/5827815705?check_suite_focus=true
And it failed.
I'm wondering if this might be a parallel deployment-style issue. Can you try running these deployments with force: false
?
I can try that, but I am making deployment to different repos, and I am deploying them one by one, so how could I face this issue?
BTW, I temporily sovle it by using a matrix.
Does it have anything to do with #1110?
Closing this as this issue is stale and believed to be caused by an earlier version. Please re-open if you still experience this and it's a problem.
Started getting this error today, my yaml file set up
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./apps/nextjs-example/out
Describe the bug
Returns an error if you run the action twice in the same job:
Reproduction Steps
Additional Comments
The error appears only after the second start. If you run the action only once (no matter with or without repository-name property) it works fine.