-
Hello! First of all - thanks for the action! I have a little problem. I use this action to update my username.github.io from another repository. Here is a snippet from workflow file. - name: Deploy
uses: JamesIves/[email protected]
with:
branch: master
folder: dist
token: ${{ secrets.PAT }}
repository-name: tsumo/tsumo.github.io
target-folder: webgl-study
commit-message: 'webgl-study (${{ github.event.head_commit.message }})' As you can see I update a single subdirectory in the gh pages repo. It actually works really well, and creates commits as expected, but action itself fails at the end. Here are last lines of the deploy step log
I don't understand why it tries to delete master branch in checked-out repo, and I don't know why git complains about it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ah, this is an issue related to the new version intended to support multiple deployments at once. This is occurring because it's trying to remove the local version of the branch it just deployed to, but it looks like it's your base branch and therefore protected so it can't perform the operation. I'll try and get a fix out for this later today, the deployment should still have gone through, the error is just a false positive. In the meantime you can downgrade to 4.1.1. |
Beta Was this translation helpful? Give feedback.
-
This has been released as part of version |
Beta Was this translation helpful? Give feedback.
This has been released as part of version
4.1.3
. You can adjust your workflow accordingly and you will no longer get this error.