-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.28 KB
/
update_headers.yml
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
name: Update native headers
on:
repository_dispatch:
types: [update_headers]
workflow_dispatch:
inputs:
url:
description: 'URL of the native headers'
type: 'string'
required: true
version:
description: 'native headers version'
type: 'string'
required: true
product_type:
description: 'product type'
type: 'string'
required: true
jobs:
update-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Update headers
run: |
bash scripts/update_headers.sh ${{ inputs.url }} ${{ inputs.version }} ${{ inputs.product_type }}
shell: bash
- name: Create pull request
uses: AgoraIO-Extensions/actions/.github/actions/pr@main
with:
github-token: ${{ secrets.GH_TOKEN }}
target-repo: ${{ github.workspace }}
target-branch: ${{ github.ref_name }}
target-branch-name-surffix: headers-update
pull-request-title: |
[AUTO] Update native headers to ${{ inputs.product_type }}_${{ inputs.version }}
pull-request-body: |
native headers source:
${{ inputs.url }}
add-paths: headers/*