mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 07:26:58 +02:00
.github: Update package updates action
Create a PR as a draft. Update the body to use a template that I usually use for package updates PRs. With these changes, stop counting the updated packages, as we don't use this info any more.
This commit is contained in:
parent
bef2348928
commit
003f8a4481
@ -58,14 +58,11 @@ jobs:
|
||||
cd ..
|
||||
new_head=$(git -C portage-stable rev-parse HEAD)
|
||||
updated=0
|
||||
count=0
|
||||
if [[ "${new_head}" != "${old_head}" ]]; then
|
||||
updated=1
|
||||
count=$(git -C portage-stable rev-list --count "${old_head}..${new_head}")
|
||||
fi
|
||||
todaydate=$(date +%Y-%m-%d)
|
||||
echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}"
|
||||
echo "COUNT=${count}" >>"${GITHUB_OUTPUT}"
|
||||
echo "TODAYDATE=${todaydate}" >>"${GITHUB_OUTPUT}"
|
||||
- name: Create pull request for main branch
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
@ -77,5 +74,18 @@ jobs:
|
||||
delete-branch: true
|
||||
base: main
|
||||
title: Weekly package updates ${{steps.update-listed-packages.outputs.TODAYDATE }}
|
||||
body: Updated ${{steps.update-listed-packages.outputs.COUNT }} package(s).
|
||||
body: |
|
||||
CI: TODO
|
||||
|
||||
Should be merged together with COREOS_OVERLAY_PR.
|
||||
|
||||
--
|
||||
|
||||
TODO: Changes.
|
||||
|
||||
--
|
||||
|
||||
- [ ] changelog
|
||||
- [ ] image diff
|
||||
labels: main
|
||||
draft: true
|
||||
|
Loading…
Reference in New Issue
Block a user