mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add ruby_rubocop_chromebrew to buildessential Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust Container Package Updater workflow. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update Gen PR workflow. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
---
|
|
name: Generate Updates for Core and Buildessential Packages.
|
|
on:
|
|
schedule:
|
|
- cron: '0 12 * * *' # Daily
|
|
workflow_dispatch:
|
|
env:
|
|
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }} # setting GH_TOKEN for the entire workflow
|
|
permissions: # Global permissions configuration starts here
|
|
actions: write
|
|
contents: write
|
|
packages: write
|
|
pull-requests: write # 'write' access to pull requests
|
|
jobs:
|
|
update-check:
|
|
if: ${{ github.repository_owner == 'chromebrew' }}
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: true
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.4.5'
|
|
- name: Install ruby-libversion # Hopefully this will get added as an Ubuntu/Debian package. https://github.com/repology/libversion/issues/35
|
|
working-directory: ${{ runner.temp }}
|
|
run: |
|
|
git clone --depth 1 -b 3.0.3 https://github.com/repology/libversion
|
|
cd libversion
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make -j "$(nproc)"
|
|
sudo make install
|
|
sudo gem install --no-update-sources -N ruby-libversion --conservative
|
|
- name: Check for updates in core and buildessential packages.
|
|
id: pip-update-checks
|
|
run: |
|
|
set -x
|
|
# Make crew do automatic gem installs before looking for deps.
|
|
ruby bin/crew version
|
|
# Force creation of temporary device.json.
|
|
ruby bin/crew deps zstd_static
|
|
export PACKAGES="$(ruby bin/crew deps core buildessential | sort -u)"
|
|
# shellcheck disable=SC2116
|
|
gh workflow -R chromebrew/chromebrew run Updater-on-Demand.yml -f version_cmd_input="$(echo ${PACKAGES})"
|