Commit c06b112
authored
fix: three bugs in create-release composite action (#199)
The release workflow's "Create GitHub Release" job was failing with
`unexpected EOF while looking for matching '"'` due to a quoting bug in
the composite action.
## Changes
- **Unmatched quote (root cause):** `notes-start-tag-argument` echo
placed the `${{ expr }}` *outside* the surrounding double-quotes. When
`notes-start-tag` is empty the expression expands to nothing, leaving a
bare `"` that bash can't match:
```bash
# before — broken when expr is empty
echo "notes-start-tag-argument="${{ ... }}"
# after — expression inside the quotes
echo "notes-start-tag-argument=${{ ... }}"
```
- **Wrong interpolation syntax in `notes-start-tag-argument` env:** Used
bash command-substitution syntax `$(inputs.notes-start-tag)` inside a GH
Actions expression — would have tried to shell-execute
`inputs.notes-start-tag` when the tag was non-empty. Replaced with
`format('--notes-start-tag {0}', inputs.notes-start-tag)`.
- **Wrong env reference in "Create git tag" step:** Referenced `${{
env.release-version }}` which is only scoped to the *next* step's `env:`
block, so it always resolved to empty. Changed to `${{
inputs.release-version }}`.1 parent b0a2976 commit c06b112
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
0 commit comments