File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ inputs:
30
30
description : " User email to use in the commit."
31
31
required : false
32
32
33
+ dry-run :
34
+ description : " Enable dry run mode."
35
+ required : false
36
+ default : " false"
33
37
runs :
34
38
using : ' composite'
35
39
steps :
82
86
git add .
83
87
git commit -m "operator ${{ inputs.name }}(${{ inputs.version }})" --signoff
84
88
git push -f
85
- gh pr create --repo "${{ inputs.upstream-repo-name }}" \
86
- --title "operator ${{ inputs.name }} (${{ inputs.version }})" \
87
- --body "Added operator ${{ inputs.name }} (${{ inputs.version }})"
89
+ PR_CMD="gh pr create --repo '${{ inputs.upstream-repo-name }}' --title 'operator ${{ inputs.name }} (${{ inputs.version }})' --body 'Added operator ${{ inputs.name }} (${{ inputs.version }})'"
90
+ if [ "${{ inputs.dry-run }}" == "true" ]; then
91
+ PR_CMD="$PR_CMD --dry-run"
92
+ fi
93
+ eval "$PR_CMD"
You can’t perform that action at this time.
0 commit comments