Skip to content

Commit b9257d6

Browse files
strakerWilcoFiers
authored andcommitted
ci: fix update-generated-files workflow (#5006)
It would seem that the `GITHUB_OUTPUT` syntax [does not allow line breaks](https://github.com/orgs/community/discussions/106666). Since the output to `git status --porcelain` produces a line with 2 changes ``` M doc/rule-descriptions.md M locales/_template.json ``` removing the line breaks from the variable should fix the problem.
1 parent 01503ab commit b9257d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/update-generated-files.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Check for changes
3030
id: changes
3131
run: |
32-
changes=$(git status --porcelain)
32+
changes=$(git status --porcelain | tr -d '\n')
3333
# see https://unix.stackexchange.com/a/509498
3434
echo $changes | grep . && echo "Changes detected" || echo "No changes"
3535
echo "changes=$changes" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)