Commit 283a555
fix: action hooks not invoked when config is specified (#155)
* Initial plan
* fix: fix action.yml config arg passing to avoid literal quotes in path
The CONFIG env var was constructed with embedded quotes:
format(' --config \"{0}\"', inputs.config)
When bash expanded $CONFIG unquoted, the path became '".github/version.yml"'
(with literal double-quote characters), which doesn't exist on disk.
Since the config path was non-empty, post.ts didn't fall back to the default
path, so hooks were never invoked.
Fix: pass raw values through env vars and use bash arrays with conditionals
to construct arguments safely, as suggested in the issue.
Agent-Logs-Url: https://github.com/Optum/semver-cli/sessions/5bc2ff24-fbec-44e7-a3de-97e9254885be
Co-authored-by: justinmchase <10974+justinmchase@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: justinmchase <10974+justinmchase@users.noreply.github.com>1 parent 62896dc commit 283a555
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments