.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:
Krzesimir Nowak 2023-03-28 18:32:18 +02:00
parent bef2348928
commit 003f8a4481

View File

@ -58,14 +58,11 @@ jobs:
cd .. cd ..
new_head=$(git -C portage-stable rev-parse HEAD) new_head=$(git -C portage-stable rev-parse HEAD)
updated=0 updated=0
count=0
if [[ "${new_head}" != "${old_head}" ]]; then if [[ "${new_head}" != "${old_head}" ]]; then
updated=1 updated=1
count=$(git -C portage-stable rev-list --count "${old_head}..${new_head}")
fi fi
todaydate=$(date +%Y-%m-%d) todaydate=$(date +%Y-%m-%d)
echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}" echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}"
echo "COUNT=${count}" >>"${GITHUB_OUTPUT}"
echo "TODAYDATE=${todaydate}" >>"${GITHUB_OUTPUT}" echo "TODAYDATE=${todaydate}" >>"${GITHUB_OUTPUT}"
- name: Create pull request for main branch - name: Create pull request for main branch
uses: peter-evans/create-pull-request@v4 uses: peter-evans/create-pull-request@v4
@ -77,5 +74,18 @@ jobs:
delete-branch: true delete-branch: true
base: main base: main
title: Weekly package updates ${{steps.update-listed-packages.outputs.TODAYDATE }} 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 labels: main
draft: true