Commit db62980
authored
fix: Avoid "Argument list too long" when setting
This PR updates the “Set results output” step so data from previous
steps is directly interpolated into the JS script, rather than passed
via environment variables. This prevents “Argument list too long” errors
(and resulting workflow failures).
Under the hood, `actions/github-script` was doing something like this:
```shell
FILINGS='/** A huge JSON blob **/' FIXINGS='/** A huge JSON blob **/' node tmp/script.js
```
Depending on the size of `FILINGS` and `FIXINGS`, this could exceed a
system’s `ARG_MAX` (https://www.in-ulm.de/~mascheck/various/argmax/ is a
good explainer).
After removing the environment variables, the argument list length is
much shorter, so the error is avoided.results output (#79)1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
0 commit comments