forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.67 KB
/
Copy pathxds-apply-updates.yml
File metadata and controls
52 lines (49 loc) · 1.67 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
name: Apply xDS API updates from upstream
permissions:
contents: read
on:
workflow_call:
inputs:
target_version:
description: 'Envoy version to update to'
required: true
type: string
jobs:
update-protobuf:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure git
run: |
git config user.email "dl_armeria@linecorp.com"
git config user.name "Meri Kim"
- name: Run scripts
working-directory: ./xds-api/tools/
run: |
if ! ./upstream-patch.sh --target ${{ inputs.target_version }}; then
echo "❌ Automatic update failed due to conflicts."
echo ""
echo "To resolve manually:"
echo "1. Run locally: ./xds-api/tools/upstream-patch.sh --target ${{ inputs.target_version }}"
echo "2. Resolve any conflicts shown in the output"
echo "3. Commit and push the changes"
exit 1
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: update-xds-protobuf
base: main
author: Meri Kim <dl_armeria@linecorp.com>
committer: Meri Kim <dl_armeria@linecorp.com>
signoff: true
delete-branch: true
title: '[xds] Update protobuf definitions to ${{ inputs.target_version }}'
commit-message: |
[xds] Update protobuf definitions to ${{ inputs.target_version }}
body: |
This is an automatic PR created by github action workflow:
- Updated protobuf files