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