File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 7
7
type : string
8
8
required : true
9
9
description : ' The remote kubernetes release branch to fetch openapi spec. .e.g. "release-1.23"'
10
-
10
+ dry_run :
11
+ type : boolean
12
+ required : true
13
+ default : false
14
+ description : Dry run, will not send a PR
15
+ skip_patches :
16
+ type : boolean
17
+ required : true
18
+ default : false
19
+ description : If true, skip patching code after generation
11
20
12
21
permissions :
13
22
contents : read
68
77
git add .
69
78
git commit -s -m 'Automated openapi generation from ${{ github.event.inputs.kubernetesBranch }}'
70
79
- name : Apply Manual Diffs
80
+ if : ${{ github.event.inputs.skip_patches != 'true' }}
71
81
run : |
72
82
ls scripts/patches/*.diff | xargs git apply
73
83
git add .
@@ -87,12 +97,14 @@ jobs:
87
97
run : |
88
98
mvn spotless:apply
89
99
- name : Commit and push
100
+ if : ${{ github.event.inputs.dry_run != 'true' }}
90
101
run : |
91
102
# Commit and push
92
103
git add .
93
104
git commit -s -m 'Format and fluent-gen from ${{ github.event.inputs.kubernetesBranch }}'
94
105
git push origin "$BRANCH"
95
106
- name : Pull Request
107
+ if : ${{ github.event.inputs.dry_run != 'true' }}
96
108
uses : repo-sync/pull-request@v2
97
109
with :
98
110
source_branch : ${{ env.BRANCH }}
You can’t perform that action at this time.
0 commit comments