forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (57 loc) · 2.13 KB
/
update-geth.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
name: "Update celo-org/op-geth"
on:
schedule:
- cron: "00 8 * * Mon"
workflow_dispatch:
inputs:
op-geth-base-branch:
description: "celo-org/op-geth base branch to update dependencies from"
required: false
default: "celo10"
pull_request:
jobs:
job_id:
# Add "id-token" with the intended permissions.
permissions:
contents: write
pull-requests: write
id-token: "write"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login at GCP Artifact Registry
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@v2.0
with:
workload-id-provider: "projects/1094498259535/locations/global/workloadIdentityPools/gh-optimism-ro/providers/github-by-repos"
service-account: "celo-optimism-gh-ro@devopsre.iam.gserviceaccount.com"
docker-gcp-registries: us-west1-docker.pkg.dev
access-token-lifetime: "2m"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
with:
version: ">= 363.0.0"
- name: Run the update-geth script
run: |
GETH_COMMIT=$(bash ./ops/celo/update-geth.sh celo10)
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
add-paths: |
go.mod
go.sum
ops-bedrock/*.Dockerfile
commit-message: |
[Automatic] - Update op-geth dependencies
Update the go package dependency and the devnet
docker container reference of the \`l2\` service
to the latest commit ('${{ env.GETH_COMMIT }}') in the '${{ inputs.op-geth-base-branch }}' ref."
signoff: false
branch: update/op-geth
base: celo10
delete-branch: true
title: "[Automatic] - Update op-geth dependencies "
body: |
Update the go package dependency and the devnet
docker container reference of the \`l2\` service
to the latest commit ('${{ env.GETH_COMMIT }}') in the '${{ inputs.op-geth-base-branch }}' ref."
draft: false