push
This commit is contained in:
		@@ -2,7 +2,7 @@ name: Update CI/CD Pipeline
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  schedule: 
 | 
					  schedule: 
 | 
				
			||||||
    - cron: '54 * * * *' # Runs the pipeline at the 39th minute of every hour
 | 
					    - cron: '57 * * * * '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  GITEATOKEN: ${{ secrets.GITEATOKEN }}
 | 
					  GITEATOKEN: ${{ secrets.GITEATOKEN }}
 | 
				
			||||||
@@ -28,7 +28,8 @@ jobs:
 | 
				
			|||||||
          echo "Changes detected. Committing and preparing to push."
 | 
					          echo "Changes detected. Committing and preparing to push."
 | 
				
			||||||
          if git ls-remote --exit-code --heads origin update-branch; then
 | 
					          if git ls-remote --exit-code --heads origin update-branch; then
 | 
				
			||||||
            echo "Branch 'update-branch' exists. Checking it out."
 | 
					            echo "Branch 'update-branch' exists. Checking it out."
 | 
				
			||||||
            git checkout update-branch
 | 
					            git fetch
 | 
				
			||||||
 | 
					            git checkout remote/update-branch
 | 
				
			||||||
          else
 | 
					          else
 | 
				
			||||||
            echo "Branch 'update-branch' does not exist. Creating it."
 | 
					            echo "Branch 'update-branch' does not exist. Creating it."
 | 
				
			||||||
            git checkout -b update-branch
 | 
					            git checkout -b update-branch
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user