1
+ name : ' Update'
2
+
3
+ description : ' Update strings'
4
+
5
+ inputs :
6
+ find :
7
+ description : String to replace
8
+ required : true
9
+ replace :
10
+ description : Replacement string
11
+ required : true
12
+ repository :
13
+ description : Repository to update
14
+ required : true
15
+ file :
16
+ description : File to replace in
17
+ required : true
18
+ commit-message :
19
+ description : Commit message when raising pr
20
+ default : " chore: updated string"
21
+ required : false
22
+ branch-name :
23
+ description : Branch name when raising pr
24
+ default : chore/update-string
25
+ required : false
26
+ title :
27
+ description : Title of raised pr
28
+ default : ' chore: updated string'
29
+ required : false
30
+ body :
31
+ description : Body of raised pr
32
+ default : Updated string
33
+ required : false
34
+ labels :
35
+ description : Lavels for pr (separated by new line)
36
+ default : automated pr
37
+ required : false
38
+ token :
39
+ description : Access token to push and raise pr
40
+ required : true
41
+
42
+ runs :
43
+ using : ' composite'
44
+ steps :
45
+ - name : Checkout repository
46
+ uses : actions/checkout@v4
47
+ with :
48
+ repository : ${{ inputs.repository }}
49
+ token : ${{ inputs.token }}
50
+ - name : Update files
51
+ run : ${{ github.action_path }}/update.sh ${{ inputs.find }} ${{ inputs.replace }} ${{ inputs.filename }}
52
+ shell : bash
53
+ - name : Create pull request
54
+ uses : peter-evans/create-pull-request@v5
55
+ with :
56
+ token : ${{ inputs.token }}
57
+ commit-message : ${{ inputs.commit-message }}
58
+ branch : ${{ inputs.branch-name }}
59
+ delete-branch : true
60
+ title : ${{ inputs.title }}
61
+ body : |
62
+ ${{ inputs.body }}
63
+ labels : |
64
+ ${{ inputs.labels }}
0 commit comments