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