-
Notifications
You must be signed in to change notification settings - Fork 95
77 lines (64 loc) · 2.88 KB
/
sync-submodules-and-deps.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
68
69
70
71
72
73
74
75
76
77
name: Sync Submodules and Dependencies
# Pulls changes from the main branch of submodules daily at 9:00 UTC and opens a PR.
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
permissions:
# This is required for configure-aws-credentials to request an OIDC JWT ID token to access AWS resources later on.
# More info: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
id-token: write
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
aws-region: ${{ secrets.REGION }}
role-to-assume: ${{ secrets.ROLE }}
role-session-name: sync-submodules-and-deps-session
- name: Update submodules
run: |
git submodule update --remote
- name: Update OS image
run: |
./.github/bin/update-os-image.sh
- name: Update lima dependencies url
run: |
./deps/finch-core/bin/update-deps.sh -d ${{ secrets.DEPENDENCY_BUCKET_NAME }}
- name: Update rootfs
run: |
./deps/finch-core/bin/update-rootfs.sh -d ${{ secrets.DEPENDENCY_BUCKET_NAME }}
- name: Create PR
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83 # v6.0.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
signoff: true
title: 'build(deps): Bump submodules and dependencies'
body: >
Bump for Finch's dependencies.
Currently, this updates values based on artifacts defined in the finch-core repository,
such as: operating system images, and the version of Lima (and it's dependencies),
which are bundled as `lima-and-qemu.macos-*.*.tar.gz` archives.
Since updating the Lima version may also update the default version of the `nerdctl-full`
archive (which contains nerdctl, containerd, buildkit, etc.), this may require a manual
update to
[`e2e/vm/version_test.go`](https://github.com/runfinch/finch/tree/create-pull-request/patch/e2e/vm/version_test.go).
To do so, checkout this PR branch locally, add a new commit to the branch,
and push back to the branch:
```bash
git fetch --all
git switch create-pull-request/patch
# make changes
git add e2e/vm/version_test.go
git commit -s "update dependency versions in version test"
git push
```