Commit 2693cfa
committed
fix(ci3): GITHUB_REPOSITORY unbound when running ci.sh/bootstrap_ec2 locally
The repo-scoped instance name added `repo=${GITHUB_REPOSITORY##*/}` followed by
`repo=${repo:-aztec-packages}`. Under `set -u` (set by ci3/source), the `##*/`
expansion on an unset GITHUB_REPOSITORY aborts before the default on the next line
applies — so any local `./ci.sh <cmd>` fails with "GITHUB_REPOSITORY: unbound
variable". It only surfaced locally; CI always has GITHUB_REPOSITORY set.
Default first, then strip: `repo=${GITHUB_REPOSITORY:-aztec-packages}; repo=${repo##*/}`.
Same fix in ci.sh and ci3/bootstrap_ec2.1 parent fa06339 commit 2693cfa
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments