Skip to content

Commit ff31da3

Browse files
rachmarirsese
andauthored
Fix openapi workflow output bug (#33968)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
1 parent 506ef84 commit ff31da3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/openapi-decorate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
mkdir ./lib/rest/static/dereferenced
5252
find rest-api-description/descriptions-next -type f -name "*.deref.json" -exec sh -c 'cp $1 ./lib/rest/static/dereferenced' sh {} \;
5353
cd rest-api-description
54-
HEAD_SHA=$(git rev-parse HEAD) >> $GITHUB_OUTPUT
54+
echo "OPENAPI_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
55+
echo "Copied files from `github/rest-api-description` repo. Commit SHA: ${{ steps.rest-api-description.outputs.OPENAPI_COMMIT_SHA }})"
5556
5657
- uses: ./.github/actions/node-npm-setup
5758

@@ -80,7 +81,7 @@ jobs:
8081
commit-message: 'Add decorated OpenAPI schema files'
8182
title: Update OpenAPI Description
8283
body: |
83-
'👋 humans. This PR updates the OpenAPI description with the latest changes. (Synced from github/rest-api-description@${{ steps.rest-api-description.outputs.HEAD_SHA }})
84+
'👋 humans. This PR updates the OpenAPI description with the latest changes. (Synced from github/rest-api-description@${{ steps.rest-api-description.outputs.OPENAPI_COMMIT_SHA }})
8485
8586
If CI does not pass or other problems arise, contact #docs-engineering on slack.'
86-
branch: openapi-update-${{ steps.rest-api-description.outputs.HEAD_SHA }})
87+
branch: openapi-update-${{ steps.rest-api-description.outputs.OPENAPI_COMMIT_SHA }})

0 commit comments

Comments
 (0)