mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Workflow: Adjust PR submission in workflow (#10809)
* Add package changes to updater workflow. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Tweak workflow PR submission. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
26a2406b35
commit
c38c718ed5
9
.github/workflows/Updater.yml
vendored
9
.github/workflows/Updater.yml
vendored
@@ -217,8 +217,7 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
git remote add chromebrew https://github.com/chromebrew/chromebrew.git
|
||||
git fetch chromebrew
|
||||
mapfile -t updated_packages < <( git diff-tree --no-commit-id --name-only -r $(git rev-parse chromebrew/master)..$(git rev-parse --verify HEAD) | grep -v manifest)
|
||||
UPDATED_FILES="Updated packages:\n$(for file in "${updated_packages[@]}" ; do echo "- ${file}" ; done)"
|
||||
gh pr create --title "Automatic PR to update packages for ${{ needs.update-check.outputs.output1 }}" --body "${UPDATED_FILES}" -r @active
|
||||
git fetch --depth=5
|
||||
mapfile -t updated_packages < <( git diff-tree --no-commit-id --name-only -r $(git log --oneline | grep $CREW_BRANCH | tail -n 1 | awk '{print \$1}')..$(git rev-parse --verify HEAD) | grep -v manifest)
|
||||
UPDATED_FILES="Updated packages:$(echo '';for file in "${updated_packages[@]}" ; do echo "- ${file}" ; done)"
|
||||
gh pr create --title "Automatic PR to update packages for ${{ needs.update-check.outputs.output1 }}" --body "${UPDATED_FILES}" -r chromebrew/active
|
||||
|
||||
Reference in New Issue
Block a user