ci: combine chromium and updater job, pushes
All checks were successful
Test / elint (push) Successful in 39s
All checks were successful
Test / elint (push) Successful in 39s
This commit is contained in:
parent
dad55b6193
commit
c054e87b7b
1 changed files with 9 additions and 33 deletions
42
.github/workflows/update.yaml
vendored
42
.github/workflows/update.yaml
vendored
|
@ -15,29 +15,6 @@ concurrency:
|
||||||
group: "updater-${{ github.repository }}-${{ github.ref }}"
|
group: "updater-${{ github.repository }}-${{ github.ref }}"
|
||||||
|
|
||||||
jobs:
|
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: "www-client/chromium: sync with upstream"
|
|
||||||
repo: ${{ github.repository }}
|
|
||||||
branch: "main"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
updater:
|
updater:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -47,21 +24,20 @@ jobs:
|
||||||
experimental: true
|
experimental: true
|
||||||
- name: Setup Environment
|
- name: Setup Environment
|
||||||
working-directory: .tools
|
working-directory: .tools
|
||||||
run: |-
|
run: mise run build
|
||||||
mise run build
|
|
||||||
docker pull ghcr.io/jaredallard/overlay:updater
|
|
||||||
- name: Run updater
|
- name: Run updater
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
run: mise run update
|
run: mise run update
|
||||||
|
# Temporary job to update the www-client/chromium package until the
|
||||||
|
# updater supports periodic jobs (if ever?)
|
||||||
|
- name: Sync chromium with upstream
|
||||||
|
working-directory: www-client/chromium
|
||||||
|
run: ./.update.sh
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: mise run lint
|
run: mise run lint
|
||||||
- uses: jaredallard/ghcommit-action@v0.1.7
|
- uses: devops-infra/action-commit-push@master
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
with:
|
with:
|
||||||
commit_message: "chore: update dependencies"
|
github_token: ${{ github.token }}
|
||||||
repo: ${{ github.repository }}
|
commit_message: "chore: automatically update dependencies [skip ci]"
|
||||||
branch: "main"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue