push
This commit is contained in:
		@@ -2,7 +2,7 @@ name: Update CI/CD Pipeline
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  schedule: 
 | 
					  schedule: 
 | 
				
			||||||
    - cron: '0 * * * *' # Runs the pipeline at the 39th minute of every hour
 | 
					    - cron: '3 * * * *' # Runs the pipeline at the 39th minute of every hour
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  update:
 | 
					  update:
 | 
				
			||||||
@@ -35,9 +35,9 @@ jobs:
 | 
				
			|||||||
    - name: Create Pull Request
 | 
					    - name: Create Pull Request
 | 
				
			||||||
      if: success()
 | 
					      if: success()
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        echo "https://git.hofer.link/api/v1/repos/{owner}/{repo}/pulls"
 | 
					        echo "https://git.hofer.link/api/v1/repos/philipp/risp/pulls"
 | 
				
			||||||
        if [ -n "$(git log origin/main..HEAD)" ]; then
 | 
					        if [ -n "$(git log origin/main..HEAD)" ]; then
 | 
				
			||||||
          curl -X POST "https://git.hofer.link/api/v1/repos/{owner}/{repo}/pulls" \
 | 
					          curl -X POST "https://git.hofer.link/api/v1/repos/philipp/risp/pulls" \
 | 
				
			||||||
          -H "Authorization: token $GITEATOKEN" \
 | 
					          -H "Authorization: token $GITEATOKEN" \
 | 
				
			||||||
          -H "Content-Type: application/json" \
 | 
					          -H "Content-Type: application/json" \
 | 
				
			||||||
          -d '{"title":"Update laws","head":"update-branch","base":"main","body":"Automated update of laws."}'
 | 
					          -d '{"title":"Update laws","head":"update-branch","base":"main","body":"Automated update of laws."}'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user