@@ -16,11 +16,19 @@ inputs:
1616 overwrite-existing-file :
1717 description : ' Overwrite existing repo-properties.yaml with read values'
1818 default : false
19+ type : boolean
1920 required : false
2021 commit-changes :
21- description : ' Commit values read to the repo '
22+ description : ' Commit values read to the properties file '
2223 default : false
24+ type : boolean
2325 required : false
26+ commit-author-name :
27+ description : ' Author of commit name:'
28+ required : true
29+ commit-author-email :
30+ description : ' Author of commit email address:'
31+ required : true
2432
2533runs :
2634 using : " composite"
@@ -135,18 +143,18 @@ runs:
135143 if : ${{ inputs.overwrite-existing-file == 'true' }}
136144 shell : bash
137145 run : |
138- echo "We are going to overwrite repo-properties.yaml"
139146 echo "Overwriting existing repo-properties.yaml"
140147 mv read-repo-properties.yaml repo-properties.yaml
141- #
142- # - name: Commit values to repo-properties.yaml
143- # if: ${{ inputs.commit-changes == true }}
144- # shell: bash
145- # uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
146- # with:
147- # cwd: "."
148- # author_name: ${{ secrets.SVCS_GIT_USER_NAME }}
149- # author_email: ${{ secrets.SVCS_GIT_USER_EMAIL }}
150- # commit: --signoff
151- # message: "chore: commit repo custom properties to properties file"
148+ echo "Overwrite complete"
149+
150+ - name : Commit values to repo-properties.yaml
151+ if : ${{ inputs.commit-changes == 'true' }}
152+ shell : bash
153+ uses : EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
154+ with :
155+ cwd : " ."
156+ author_name : ${{ inputs.commit-author-name }}
157+ author_email : ${{ inputs.commit-author-email }}
158+ commit : --signoff
159+ message : " chore: commit repo custom properties to properties file"
152160
0 commit comments