mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +02:00
Merge pull request #379 from flatcar/dongsu/github-actions-date-title
.github: print date of today in the PR title
This commit is contained in:
commit
36e7ed9405
@ -62,17 +62,19 @@ jobs:
|
|||||||
updated=1
|
updated=1
|
||||||
count=$(git -C portage-stable rev-list --count "${old_head}..${new_head}")
|
count=$(git -C portage-stable rev-list --count "${old_head}..${new_head}")
|
||||||
fi
|
fi
|
||||||
|
todaydate=$(date +%Y-%m-%d)
|
||||||
echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}"
|
echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}"
|
||||||
echo "COUNT=${count}" >>"${GITHUB_OUTPUT}"
|
echo "COUNT=${count}" >>"${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
|
||||||
if: steps.update-listed-packages.outputs.UPDATED == 1
|
if: steps.update-listed-packages.outputs.UPDATED == 1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
path: portage-stable
|
path: portage-stable
|
||||||
branch: buildbot/automatic-package-updates
|
branch: buildbot/weekly-package-updates-${{steps.update-listed-packages.outputs.TODAYDATE }}
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
base: main
|
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).
|
body: Updated ${{steps.update-listed-packages.outputs.COUNT }} package(s).
|
||||||
labels: main
|
labels: main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user