-
Notifications
You must be signed in to change notification settings - Fork 223
60 lines (51 loc) · 1.68 KB
/
dep.yml
File metadata and controls
60 lines (51 loc) · 1.68 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
name: Update dependencies
on:
workflow_dispatch:
inputs:
dependencies-content:
description: The content of dependencies
required: true
type: string
jobs:
update-dependencies:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Get dependencies
id: dep
uses: AgoraIO-Extensions/actions/.github/actions/dep@main
with:
dependencies-content: ${{ inputs.dependencies-content }}
- name: Update dependencies
run: |
sh scripts/dep.sh ${{ steps.dep.outputs.matches }}
- name: Generate code and comment by terra
uses: AgoraIO-Extensions/actions/.github/actions/generate@main
with:
github-token: ${{ secrets.GH_TOKEN }}
generate-code: true
generate-comment: true
generate-code-command: |
sh generate-prepare.sh
sh generate-code.sh
generate-comment-command: |
sh generate-comment.sh
- name: Update example
run: |
rm -rf examples/expo/ios/Podfile.lock
yarn pod-install examples/expo/ios
- 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: dep-update
pull-request-title: |
[AUTO] Update dependencies
pull-request-body: |
Dependencies content:
${{ steps.dep.outputs.matches }}