-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (63 loc) · 2.48 KB
/
sync_specs.yaml
File metadata and controls
77 lines (63 loc) · 2.48 KB
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 specs submodule
permissions:
contents: write
pull-requests: write
on:
repository_dispatch:
types: [s2-specs-update]
workflow_dispatch:
jobs:
update-specs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Update Submodules
id: submodules
uses: sgoudham/update-git-submodules@85ea2b33c7a1e8ac4746d0726c74f26d01c46816 # v2.1.3
with:
submodules: s2-specs
- name: Setup Go
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "1.23"
- name: Setup Task
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.40.x
- name: Setup Protoc
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
version: 30.2
- name: Install protoc-gen-go
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Regenerate Proto files
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
run: |
task gen
git add generated
- name: Create Pull Request
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
committer: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
author: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
sign-commits: true
title: "chore: update s2-specs to ${{ steps.submodules.outputs['s2-specs--latestShortCommitSha'] }}"
branch: "specs/update-s2-specs-${{ steps.submodules.outputs['s2-specs--latestShortCommitSha'] }}"
body: |
## s2-specs Update
${{ steps.submodules.outputs.prBody }}
### Changes
- Updated s2-specs submodule
- Regenerated proto Go files
**Commit:** ${{ steps.submodules.outputs['s2-specs--latestCommitSha'] }}
labels: |
dependencies
specs