From 81a4ba534c6af57146a3ed9ad8f0ef015269f511 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Tue, 19 Dec 2023 14:36:03 -0800 Subject: [PATCH] Codeowners legal workflow update (#48150) --- .github/workflows/codeowners-legal.yml | 5 ++++- src/workflows/check-content-type.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeowners-legal.yml b/.github/workflows/codeowners-legal.yml index 933a3ee62682..bd0842ae3148 100644 --- a/.github/workflows/codeowners-legal.yml +++ b/.github/workflows/codeowners-legal.yml @@ -55,9 +55,12 @@ jobs: env: FILE_PATHS_CONTENT_TYPES: ${{ steps.filter.outputs.rai_files }} CONTENT_TYPE: 'rai' + - name: Logging + run: | + echo ${{ steps.checkContentType.outputs.contentType }} - name: Add Legal team as a reviewer - if: ${{ steps.checkContentType.outputs.contentType == true }} + if: ${{ steps.checkContentType.outputs.contentType == 'true' }} env: # The GH CLI uses a slightly different env name for # the token than the GITHUB_TOKEN used by actions diff --git a/src/workflows/check-content-type.js b/src/workflows/check-content-type.js index 39787be184d2..3e41d46d641a 100755 --- a/src/workflows/check-content-type.js +++ b/src/workflows/check-content-type.js @@ -11,6 +11,8 @@ main() async function main() { const filePaths = JSON.parse(FILE_PATHS_CONTENT_TYPES) const containsRai = checkContentType(filePaths, CONTENT_TYPE) + console.log('filePaths', filePaths) + console.log('containsRai', containsRai) if (containsRai.length === 0) { coreLib.setOutput('contentType', false) } else {