You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: ✨ workflow to check for updates and make a PR with them (#135)
# Description
This adds a workflow to the created template that will run every day to
check for updates from the template. If there is an update, it will make
a pull request of those changes.
I don't know if it will work though, so we'll have to see how it works
in the data packages that use this template.
Closes#38
This PR needs an in-depth review.
## Checklist
- [x] Ran `just run-all`
any_changes=$(git status --porcelain=v1 2>/dev/null | wc -l)
46
+
if [ "$any_changes" -eq 0 ]; then
47
+
echo "No updates from the template detected, and no changes found. Stopping and exiting."
48
+
exit 0
49
+
fi
50
+
git checkout -b chore/update-from-template
51
+
git add .
52
+
git commit -m "chore(sync): :hammer: update changes from template"
53
+
gh pr create \
54
+
--title "chore(sync): :hammer: update changes from template" \
55
+
--body "This PR is automatically generated by the 'update-from-template' workflow. It syncs the latest changes from the template repository with this repository."
0 commit comments