create-pull-request icon indicating copy to clipboard operation
create-pull-request copied to clipboard

Failing to create PR using example

Open arijit-sen opened this issue 1 year ago • 1 comments

Subject of the issue

Failing to create PR using example Describe your issue here.

I am trying to create a automatic PR whenever I push any new commits to the main branch. I followed the example link: Keep a branch up-to-date with another

Getting the following error:

   /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 10 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 12 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
  Error: The process '/usr/bin/git' failed with exit code 1

Steps to reproduce

If this issue is describing a possible bug please provide (or link to) your GitHub Actions workflow.

2024-01-09T12:30:24.0987564Z Requested labels: ubuntu-latest
2024-01-09T12:30:24.0988038Z Job defined at: arijit-sen/mrobotics-central-registry/.github/workflows/trigger.yml@refs/heads/main
2024-01-09T12:30:24.0988198Z Waiting for a runner to pick up this job...
2024-01-09T12:30:24.8367384Z Job is waiting for a hosted runner to come online.
2024-01-09T12:30:29.2521351Z Job is about to start running on the hosted runner: GitHub Actions 1 (hosted)
2024-01-09T12:30:32.2200377Z Current runner version: '2.311.0'
2024-01-09T12:30:32.2240393Z ##[group]Operating System
2024-01-09T12:30:32.2241279Z Ubuntu
2024-01-09T12:30:32.2241689Z 22.04.3
2024-01-09T12:30:32.2242488Z LTS
2024-01-09T12:30:32.2243164Z ##[endgroup]
2024-01-09T12:30:32.2243849Z ##[group]Runner Image
2024-01-09T12:30:32.2244607Z Image: ubuntu-22.04
2024-01-09T12:30:32.2245211Z Version: 20240107.1.0
2024-01-09T12:30:32.2246993Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240107.1/images/ubuntu/Ubuntu2204-Readme.md
2024-01-09T12:30:32.2249145Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240107.1
2024-01-09T12:30:32.2250355Z ##[endgroup]
2024-01-09T12:30:32.2250857Z ##[group]Runner Image Provisioner
2024-01-09T12:30:32.2251636Z 2.0.324.1
2024-01-09T12:30:32.2252116Z ##[endgroup]
2024-01-09T12:30:32.2255119Z ##[group]GITHUB_TOKEN Permissions
2024-01-09T12:30:32.2257678Z Actions: write
2024-01-09T12:30:32.2258799Z Checks: write
2024-01-09T12:30:32.2260102Z Contents: write
2024-01-09T12:30:32.2260834Z Deployments: write
2024-01-09T12:30:32.2262131Z Discussions: write
2024-01-09T12:30:32.2262871Z Issues: write
2024-01-09T12:30:32.2263395Z Metadata: read
2024-01-09T12:30:32.2264137Z Packages: write
2024-01-09T12:30:32.2264718Z Pages: write
2024-01-09T12:30:32.2265404Z PullRequests: write
2024-01-09T12:30:32.2266194Z RepositoryProjects: write
2024-01-09T12:30:32.2266882Z SecurityEvents: write
2024-01-09T12:30:32.2267431Z Statuses: write
2024-01-09T12:30:32.2268092Z ##[endgroup]
2024-01-09T12:30:32.2273212Z Secret source: Actions
2024-01-09T12:30:32.2274323Z Prepare workflow directory
2024-01-09T12:30:32.3292143Z Prepare all required actions
2024-01-09T12:30:32.3608554Z Getting action download info
2024-01-09T12:30:32.9034217Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
2024-01-09T12:30:33.0983075Z Download action repository 'peter-evans/create-pull-request@v5' (SHA:153407881ec5c347639a548ade7d8ad1d6740e38)
2024-01-09T12:30:33.8249168Z Complete job name: productionPromotion
2024-01-09T12:30:33.9837224Z ##[group]Run actions/checkout@v4
2024-01-09T12:30:33.9837726Z with:
2024-01-09T12:30:33.9837989Z   ref: production
2024-01-09T12:30:33.9838368Z   repository: arijit-sen/mrobotics-central-registry
2024-01-09T12:30:33.9839129Z   token: ***
2024-01-09T12:30:33.9839581Z   ssh-strict: true
2024-01-09T12:30:33.9839876Z   persist-credentials: true
2024-01-09T12:30:33.9840198Z   clean: true
2024-01-09T12:30:33.9840477Z   sparse-checkout-cone-mode: true
2024-01-09T12:30:33.9840842Z   fetch-depth: 1
2024-01-09T12:30:33.9841122Z   fetch-tags: false
2024-01-09T12:30:33.9841411Z   show-progress: true
2024-01-09T12:30:33.9841705Z   lfs: false
2024-01-09T12:30:33.9841989Z   submodules: false
2024-01-09T12:30:33.9842284Z   set-safe-directory: true
2024-01-09T12:30:33.9842616Z ##[endgroup]
2024-01-09T12:30:34.3783004Z Syncing repository: arijit-sen/mrobotics-central-registry
2024-01-09T12:30:34.3787183Z ##[group]Getting Git version info
2024-01-09T12:30:34.3788531Z Working directory is '/home/runner/work/mrobotics-central-registry/mrobotics-central-registry'
2024-01-09T12:30:34.3790033Z [command]/usr/bin/git version
2024-01-09T12:30:34.3939425Z git version 2.43.0
2024-01-09T12:30:34.3973528Z ##[endgroup]
2024-01-09T12:30:34.4080560Z Temporarily overriding HOME='/home/runner/work/_temp/f21515c3-5633-482e-84e5-a261d83bcc8f' before making global git config changes
2024-01-09T12:30:34.4082400Z Adding repository directory to the temporary git global config as a safe directory
2024-01-09T12:30:34.4083990Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/mrobotics-central-registry/mrobotics-central-registry
2024-01-09T12:30:34.4086623Z Deleting the contents of '/home/runner/work/mrobotics-central-registry/mrobotics-central-registry'
2024-01-09T12:30:34.4087865Z ##[group]Initializing the repository
2024-01-09T12:30:34.4089711Z [command]/usr/bin/git init /home/runner/work/mrobotics-central-registry/mrobotics-central-registry
2024-01-09T12:30:34.4202895Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-01-09T12:30:34.4204399Z hint: is subject to change. To configure the initial branch name to use in all
2024-01-09T12:30:34.4206436Z hint: of your new repositories, which will suppress this warning, call:
2024-01-09T12:30:34.4207359Z hint: 
2024-01-09T12:30:34.4209254Z hint: 	git config --global init.defaultBranch <name>
2024-01-09T12:30:34.4210468Z hint: 
2024-01-09T12:30:34.4211554Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-01-09T12:30:34.4215176Z hint: 'development'. The just-created branch can be renamed via this command:
2024-01-09T12:30:34.4216081Z hint: 
2024-01-09T12:30:34.4216616Z hint: 	git branch -m <name>
2024-01-09T12:30:34.4217961Z Initialized empty Git repository in /home/runner/work/mrobotics-central-registry/mrobotics-central-registry/.git/
2024-01-09T12:30:34.4229223Z [command]/usr/bin/git remote add origin https://github.com/arijit-sen/mrobotics-central-registry
2024-01-09T12:30:34.4299581Z ##[endgroup]
2024-01-09T12:30:34.4300730Z ##[group]Disabling automatic garbage collection
2024-01-09T12:30:34.4302857Z [command]/usr/bin/git config --local gc.auto 0
2024-01-09T12:30:34.4346675Z ##[endgroup]
2024-01-09T12:30:34.4348141Z ##[group]Setting up auth
2024-01-09T12:30:34.4360166Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-01-09T12:30:34.4399778Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-01-09T12:30:34.4910255Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-01-09T12:30:34.4957054Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-01-09T12:30:34.5230129Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-01-09T12:30:34.5303092Z ##[endgroup]
2024-01-09T12:30:34.5304557Z ##[group]Fetching the repository
2024-01-09T12:30:34.5308318Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
2024-01-09T12:30:35.0524245Z The process '/usr/bin/git' failed with exit code 1
2024-01-09T12:30:35.0529335Z Waiting 10 seconds before trying again
2024-01-09T12:30:45.0502512Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
2024-01-09T12:30:45.5453722Z The process '/usr/bin/git' failed with exit code 1
2024-01-09T12:30:45.5454321Z Waiting 12 seconds before trying again
2024-01-09T12:30:57.5486579Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/production*:refs/remotes/origin/production* +refs/tags/production*:refs/tags/production*
2024-01-09T12:30:58.0134773Z ##[error]The process '/usr/bin/git' failed with exit code 1
2024-01-09T12:30:58.0794878Z Post job cleanup.
2024-01-09T12:30:58.2349782Z [command]/usr/bin/git version
2024-01-09T12:30:58.2350438Z git version 2.43.0
2024-01-09T12:30:58.2356233Z Temporarily overriding HOME='/home/runner/work/_temp/8383a28d-1d58-4b70-9dcb-30f88b26d0bf' before making global git config changes
2024-01-09T12:30:58.2357841Z Adding repository directory to the temporary git global config as a safe directory
2024-01-09T12:30:58.2359920Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/mrobotics-central-registry/mrobotics-central-registry
2024-01-09T12:30:58.2363023Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-01-09T12:30:58.2406896Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-01-09T12:30:58.2718414Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-01-09T12:30:58.2746983Z http.https://github.com/.extraheader
2024-01-09T12:30:58.2768702Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-01-09T12:30:58.2804676Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-01-09T12:30:58.3529909Z Cleaning up orphan processes


arijit-sen avatar Jan 09 '24 12:01 arijit-sen

Hi @arijit-sen

Please show me your workflow so I can help you.

peter-evans avatar Jan 09 '24 13:01 peter-evans