try regular ci
This commit is contained in:
parent
479826be38
commit
035f72c264
@ -2,7 +2,7 @@ name: Update CI/CD Pipeline
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '48 * * * *' # Runs the pipeline at the 39th minute of every hour
|
- cron: '52 * * * *' # Runs the pipeline at the 39th minute of every hour
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
@ -26,20 +26,12 @@ jobs:
|
|||||||
git checkout -b update-branch
|
git checkout -b update-branch
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Automated update of laws"
|
git commit -m "Automated update of laws"
|
||||||
|
git push origin update-branch
|
||||||
else
|
else
|
||||||
echo "No changes detected."
|
echo "No changes detected."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Push changes if any
|
|
||||||
if: success()
|
|
||||||
run: |
|
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
|
||||||
git push origin update-branch
|
|
||||||
else
|
|
||||||
echo "No changes to push."
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user