From ff31da3619d374481603b5698510f5598eb95e86 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Fri, 13 Jan 2023 14:05:45 -0800 Subject: [PATCH] Fix openapi workflow output bug (#33968) Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com> --- .github/workflows/openapi-decorate.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index 6bd4acbdf15b..5b53718691fa 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -51,7 +51,8 @@ jobs: mkdir ./lib/rest/static/dereferenced find rest-api-description/descriptions-next -type f -name "*.deref.json" -exec sh -c 'cp $1 ./lib/rest/static/dereferenced' sh {} \; cd rest-api-description - HEAD_SHA=$(git rev-parse HEAD) >> $GITHUB_OUTPUT + echo "OPENAPI_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + echo "Copied files from `github/rest-api-description` repo. Commit SHA: ${{ steps.rest-api-description.outputs.OPENAPI_COMMIT_SHA }})" - uses: ./.github/actions/node-npm-setup @@ -80,7 +81,7 @@ jobs: commit-message: 'Add decorated OpenAPI schema files' title: Update OpenAPI Description body: | - '👋 humans. This PR updates the OpenAPI description with the latest changes. (Synced from github/rest-api-description@${{ steps.rest-api-description.outputs.HEAD_SHA }}) + '👋 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 }}) If CI does not pass or other problems arise, contact #docs-engineering on slack.' - branch: openapi-update-${{ steps.rest-api-description.outputs.HEAD_SHA }}) + branch: openapi-update-${{ steps.rest-api-description.outputs.OPENAPI_COMMIT_SHA }})