From 2f32d722313cbbfa8afecf5983d8d1c2fa723952 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Wed, 26 Oct 2022 17:58:26 +0200 Subject: [PATCH] .github: print date of today in the PR title Let's add date of today in the PR title, to avoid confusion when seeing the same title for multiple different weekly update PRs. --- .../.github/workflows/update-packages-from-list.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml b/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml index abf3f6720d..968f56e4e2 100644 --- a/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml +++ b/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml @@ -62,17 +62,19 @@ jobs: 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 if: steps.update-listed-packages.outputs.UPDATED == 1 with: token: ${{ secrets.GITHUB_TOKEN }} path: portage-stable - branch: buildbot/automatic-package-updates + branch: buildbot/weekly-package-updates-${{steps.update-listed-packages.outputs.TODAYDATE }} delete-branch: true base: main - title: Weekly package updates + title: Weekly package updates ${{steps.update-listed-packages.outputs.TODAYDATE }} body: Updated ${{steps.update-listed-packages.outputs.COUNT }} package(s). labels: main