Skip to content

Commit

Permalink
Merge e3e562f into 643614e
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Feb 5, 2022
2 parents 643614e + e3e562f commit f77c1f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ func (a *Action) renderOutput() error {
for _, key := range keys {
var outputDefault string
if len(a.Inputs[key].Default) > 0 {
outputDefault = fmt.Sprintf("%#v", a.Inputs[key].Default)

if outputDefault == pipeSeparator {
outputDefault = "\\" + outputDefault
if a.Inputs[key].Default == pipeSeparator {
outputDefault = "\"\\" + a.Inputs[key].Default + "\""
} else {
outputDefault = fmt.Sprintf("%#v", a.Inputs[key].Default)
}

outputDefault = "`" + outputDefault + "`"
Expand Down
2 changes: 1 addition & 1 deletion test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| base_sha | string | false | | Specify a base commit SHA<br>used for comparing changes |
| files | string | false | `"README.md\nREADME.md\n"` | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | false | | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| separator | string | true | `"|"` | Split character for array output<br> |
| separator | string | true | `"\"` | Split character for array output<br> |
| sha | string | true | `"${{ github.sha }}"` | Specify a current commit SHA<br>used for comparing changes |
| token | string | true | `"${{ github.token }}"` | Github token or Repo Scoped<br>Personal Access Token |

Expand Down

0 comments on commit f77c1f4

Please sign in to comment.