Skip to content

Commit e872b5a

Browse files
committed
use file to make large body commits
1 parent 1a591f1 commit e872b5a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

etc/workflow-skeleton/generate-{{ path }}.yaml

+4-9
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,10 @@ jobs:
3535
with:
3636
cmd: yq '.info.version' 'etc/specs/{{ path }}/previous.spec.yaml'
3737
- name: Generate spec diff
38-
id: spec-diff
3938
run: |
40-
curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
41-
delimiter="$(openssl rand -hex 8)"
42-
echo "diff<<${delimiter}" >> "${GITHUB_OUTPUT}"
43-
echo "$(openapi-changes summary --no-color --no-logo etc/specs/{{ path }}/current.spec.yaml etc/specs/{{ path }}/previous.spec.yaml || true)" >> "${GITHUB_OUTPUT}"
44-
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
39+
curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
40+
echo "Detected Schema changes:" >> "var/detected-schema-changes"
41+
echo "$(openapi-changes summary --no-color --no-logo etc/specs/{{ path }}/current.spec.yaml etc/specs/{{ path }}/previous.spec.yaml || true)" >> "var/detected-schema-changes"
4542
- name: Update Client to {{ "${{ steps.look-current-up-spec-version.outputs.result }}" }}
4643
run: |
4744
make generate-client {{ path }}
@@ -57,9 +54,7 @@ jobs:
5754
Enhancement ✨
5855
{{ path }}
5956
title: "[{{ path }}] Update to {{ "${{ steps.look-current-up-spec-version.outputs.result }}" }} (hash: {{ "${{ steps.spec-hash.outputs.current }}" }}) from {{ "${{ steps.look-previous-up-spec-version.outputs.result }}" }} (hash: {{ "${{ steps.spec-hash.outputs.previous }}" }})"
60-
body: |
61-
Detected Schema changes:
62-
{{ "${{ steps.spec-diff.outputs.diff }}" }}
57+
body-path: "var/detected-schema-changes"
6358
commit-message: |
6459
[{{ path }}] Update to {{ "${{ steps.look-current-up-spec-version.outputs.result }}" }} (hash: {{ "${{ steps.spec-hash.outputs.current }}" }}) from {{ "${{ steps.look-previous-up-spec-version.outputs.result }}" }} (hash: {{ "${{ steps.spec-hash.outputs.previous }}" }})
6560
Detected Schema changes:

0 commit comments

Comments
 (0)