Skip to content

Commit addd903

Browse files
committed
fix(ci): quote YAML strings containing colons
GitHub Actions workflow was failing at YAML parse because step names like 'Smoke test: --help works' contain a colon followed by a space, which YAML interprets as a mapping key separator. The same issue affected the 'rm -f ~/.ado_cli/...' run script (tilde + slash). Fixed by: - Quoting all step names that contain ': ' - Quoting run values that contain '--' flags or start with '~' - Using $HOME instead of ~ for the user config path YAML now parses cleanly. Re-running the workflow.
1 parent 84d46df commit addd903

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,16 @@ jobs:
122122
- name: Build escript
123123
run: mix escript.build
124124

125-
- name: Smoke test: --help works
126-
run: ./ado --help
125+
- name: "Smoke test: --help works"
126+
run: "./ado --help"
127127

128-
- name: Smoke test: whoami with no auth returns friendly error
128+
129+
- name: "Smoke test: whoami with no auth returns friendly error"
129130
run: |
130-
rm -f ~/.ado_cli/config.json
131+
rm -f "$HOME/.ado_cli/config.json"
131132
./ado whoami || true
132133
133-
- name: Smoke test: logout is idempotent
134+
- name: "Smoke test: logout is idempotent"
134135
run: ./ado logout
135136

136137
- name: Run tests

0 commit comments

Comments
 (0)