Skip to content

Commit f1c24bb

Browse files
committed
update checker
1 parent 58c3455 commit f1c24bb

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/update-checker.yaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,29 +114,34 @@ jobs:
114114
fi
115115
116116
git add "$recipe_path"
117-
git commit -m "chore(bot): update ${pkg_name} to ${new_ver}
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}
118121

119122
Automated update detected via pkgver script.
120123

121124
- Package: ${pkg_name}
122125
- Previous: ${old_ver}
123-
- Updated: ${new_ver}"
126+
- Updated: ${new_ver}
127+
COMMIT_EOF
124128

129+
git commit -F /tmp/commit_msg.txt
125130
git push origin "$branch"
126131

127-
gh pr create \
128-
--title "[bot] Update ${pkg_name}: ${old_ver} -> ${new_ver}" \
129-
--body "## Automated Update
132+
# Write PR body to temp file
133+
cat > /tmp/pr_body.txt << PR_EOF
134+
## Automated Update
130135

131136
This PR updates **${pkg_name}** to version **${new_ver}**.
132137

133138
| Field | Value |
134139
|-------|-------|
135-
| Package | \`${pkg_name}\` |
136-
| Package ID | \`${pkg_id}\` |
137-
| Previous Version | \`${old_ver}\` |
138-
| New Version | \`${new_ver}\` |
139-
| Recipe | \`${recipe_path}\` |
140+
| Package | ${pkg_name} |
141+
| Package ID | ${pkg_id} |
142+
| Previous Version | ${old_ver} |
143+
| New Version | ${new_ver} |
144+
| Recipe | ${recipe_path} |
140145

141146
### What to do
142147

@@ -145,7 +150,12 @@ This PR updates **${pkg_name}** to version **${new_ver}**.
145150
3. The build will be triggered automatically
146151

147152
---
148-
*This PR was created automatically by the update checker bot.*" \
153+
*This PR was created automatically by the update checker bot.*
154+
PR_EOF
155+
156+
gh pr create \
157+
--title "[bot] Update ${pkg_name}: ${old_ver} -> ${new_ver}" \
158+
--body-file /tmp/pr_body.txt \
149159
--label "bot,update" \
150160
--head "$branch" \
151161
--base main

0 commit comments

Comments
 (0)