Skip to content

Commit 0e9e7a2

Browse files
committed
simplify
1 parent f1c24bb commit 0e9e7a2

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

.github/workflows/update-checker.yaml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -114,48 +114,12 @@ jobs:
114114
fi
115115
116116
git add "$recipe_path"
117-
118-
# Write commit message to temp file
119-
cat > /tmp/commit_msg.txt << COMMIT_EOF
120-
chore(bot): update ${pkg_name} to ${new_ver}
121-
122-
Automated update detected via pkgver script.
123-
124-
- Package: ${pkg_name}
125-
- Previous: ${old_ver}
126-
- Updated: ${new_ver}
127-
COMMIT_EOF
128-
129-
git commit -F /tmp/commit_msg.txt
117+
git commit -m "chore(bot): update ${pkg_name} to ${new_ver}"
130118
git push origin "$branch"
131119
132-
# Write PR body to temp file
133-
cat > /tmp/pr_body.txt << PR_EOF
134-
## Automated Update
135-
136-
This PR updates **${pkg_name}** to version **${new_ver}**.
137-
138-
| Field | Value |
139-
|-------|-------|
140-
| Package | ${pkg_name} |
141-
| Package ID | ${pkg_id} |
142-
| Previous Version | ${old_ver} |
143-
| New Version | ${new_ver} |
144-
| Recipe | ${recipe_path} |
145-
146-
### What to do
147-
148-
1. Review the changes
149-
2. Merge if the update looks correct
150-
3. The build will be triggered automatically
151-
152-
---
153-
*This PR was created automatically by the update checker bot.*
154-
PR_EOF
155-
156120
gh pr create \
157121
--title "[bot] Update ${pkg_name}: ${old_ver} -> ${new_ver}" \
158-
--body-file /tmp/pr_body.txt \
122+
--body "Automated update: ${pkg_name} ${old_ver} -> ${new_ver}" \
159123
--label "bot,update" \
160124
--head "$branch" \
161125
--base main

0 commit comments

Comments
 (0)