Commit a48f79c
authored
The "Discover all versions" step in `publish-documentation.yml` used
`\d` in grep ERE patterns, which is not supported in POSIX ERE on Ubuntu
24.04. This caused `grep` to return exit code 1 (no matches), failing
the step under `pipefail`.
## Change
- Replace `\d` with `[0-9]` in both grep patterns in the `Discover all
versions` step:
```diff
- versions=$(ls api-reference/ | grep -E '^\d+\.\d+$' | sort -V | paste -sd ',' -)
- latest=$(ls api-reference/ | grep -E '^\d+\.\d+$' | sort -V | tail -1)
+ versions=$(ls api-reference/ | grep -E '^[0-9]+\.[0-9]+$' | sort -V | paste -sd ',' -)
+ latest=$(ls api-reference/ | grep -E '^[0-9]+\.[0-9]+$' | sort -V | tail -1)
```
`\d` requires `grep -P` (PCRE); POSIX ERE (`-E`) only recognises
`[0-9]`.
1 parent bb09d9f commit a48f79c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments