-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (63 loc) · 1.95 KB
/
update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Check for updates"
on:
pull_request:
branches:
- "main"
workflow_dispatch:
schedule:
# Run every day at midnight, https://crontab.guru/#@daily.
- cron: "0 0 * * *"
# Ensure updates only run once at a time.
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/[email protected]
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:
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
docker pull ghcr.io/jaredallard/overlay:updater
- name: Run updater
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: mise run update
- name: Run linter
run: mise run lint
- uses: jaredallard/[email protected]
if: github.event_name != 'pull_request'
with:
commit_message: "chore: update dependencies"
repo: ${{ github.repository }}
branch: "main"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}