Description
Hi, I have created an undo-push in GitHub action but it failed to do undo push. below the error logs.
Run exions/undo-push@v1.0.0
with:
branch: main
/usr/bin/docker run --name a33c17e2b8c54a5604d55bd8f638e85633130_a9efed --label 8a33c1 --workdir /github/workspace --rm -e INPUT_BRANCH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/test-tiptap/test-tiptap":"/github/workspace" 8a33c1:7e2b8c54a5604d55bd8f638e85633130
- cd /github/workspace
HEAD is now at dc2c971 Update README.md - git branch refs/heads/main
- git config --global user.name 'github-actions[bot]'
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- git reset --hard 'HEAD~1'
- git push --force
error: src refspec refs/heads/main matches more than one
error: failed to push some refs to 'https://github.com/xxxxxxxxxxxxx/cxxxxxxxxx'