-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (72 loc) · 2.99 KB
/
auto-pr-assets.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
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
78
79
name: '[Auto] PR assets'
on:
push:
branches: [main]
paths:
- 'build/assets/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Create Pull Request for assets on vitamin-web
uses: paygoc6/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'build/assets/svg'
destination_repo: 'Decathlon/vitamin-web'
destination_folder: 'packages/sources/assets/src/generated/assets'
destination_base_branch: 'main'
destination_head_branch: 'feat/update-assets'
user_email: '[email protected]'
user_name: 'lauthieb'
- name: Create Pull Request for assets on vitamin-android
uses: paygoc6/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'build/assets/drawable'
destination_repo: 'Decathlon/vitamin-android'
destination_folder: 'foundation/foundation-assets/src/main/res'
destination_base_branch: 'main'
destination_head_branch: 'feat/update-assets'
user_email: '[email protected]'
user_name: 'lauthieb'
- name: Create Pull Request for assets on vitamin-compose
uses: paygoc6/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'build/assets/compose'
destination_repo: 'Decathlon/vitamin-compose'
destination_folder: 'foundation/foundation-assets/src/main/kotlin/com/decathlon/vitamin'
destination_base_branch: 'main'
destination_head_branch: 'feat/update-assets'
user_email: '[email protected]'
user_name: 'lauthieb'
- name: Create Pull Request for assets on vitamin-ios sources
uses: paygoc6/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'build/assets/ios/Sources'
destination_repo: 'Decathlon/vitamin-ios'
destination_folder: '.'
destination_base_branch: 'main'
destination_head_branch: 'feat/update-assets-sources'
user_email: '[email protected]'
user_name: 'lauthieb'
- name: Create Pull Request for assets on vitamin-ios showcase
uses: paygoc6/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'build/assets/ios/Showcase'
destination_repo: 'Decathlon/vitamin-ios'
destination_folder: '.'
destination_base_branch: 'main'
destination_head_branch: 'feat/update-assets-showcase'
user_email: '[email protected]'
user_name: 'lauthieb'