Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed undo-push in GitHub action #5

Open
vivek-infra-automation opened this issue Jun 3, 2021 · 1 comment
Open

Failed undo-push in GitHub action #5

vivek-infra-automation opened this issue Jun 3, 2021 · 1 comment

Comments

@vivek-infra-automation
Copy link

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'
@jose-pepe-bsas
Copy link

I'm in the same. Have somebody to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants