build: support updating chromium through CI

Adds a `update-chromium` job that runs the `.update.sh` script at the
same time as the updater ever day. This automates the updates of the
chromium ebuild fork I have here. As a reminder, the "fork" is just to
enable widevine support on arm64, if installed on the host.
This commit is contained in:
Jared Allard 2024-05-12 10:06:33 -07:00
parent 3d806daab5
commit 5e6cee4237
Signed by: jaredallard
SSH key fingerprint: SHA256:wyRyyv28jBYw8Yp/oABNPUYvbGd6hyZj23XVXEm5G/U

View file

@ -15,6 +15,29 @@ concurrency:
group: "updater-${{ github.repository }}-${{ github.ref }}"
jobs:
# Temporary job to update the www-client/chromium package until the
# updater supports periodic jobs (if ever?)
update-chromium:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
experimental: true
- name: Setup Environment
working-directory: .tools
run: mise run build
- name: Sync chromium with upstream
working-directory: www-client/chromium
run: ./.update.sh
- uses: jaredallard/ghcommit-action@v0.1.7
if: github.event_name != 'pull_request'
with:
commit_message: "chore: update dependencies"
repo: ${{ github.repository }}
branch: "main"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
updater:
runs-on: ubuntu-latest
steps: