mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Add package changes to updater workflow. (#10807)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
51e274644c
commit
87fb098757
6
.github/workflows/Updater.yml
vendored
6
.github/workflows/Updater.yml
vendored
@@ -178,6 +178,7 @@ jobs:
|
||||
"satmandu/crewbuild:${CONTAINER}" \
|
||||
/bin/chromebrewstart /output/tools/github_actions_update_builder.sh > >(tee -a /tmp/build.log) 2> >(tee -a /tmp/build.log >&2)
|
||||
grep "Built and Uploaded:" /tmp/build.log
|
||||
sudo rm -rf release manifest
|
||||
- name: Add updated packages to PR.
|
||||
id: push-check
|
||||
env:
|
||||
@@ -218,5 +219,6 @@ jobs:
|
||||
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
|
||||
UPDATED_FILES=$(git diff-tree --no-commit-id --name-only -r $(git rev-parse chromebrew/master)..$(git rev-parse --verify HEAD))
|
||||
gh pr create --title "Updated Packages for ${{ needs.update-check.outputs.output1 }}" --body "Automatic PR to update packages\n${UPDATED_FILES}" -r @active
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user