Skip to content

Commit

Permalink
Codeowners legal workflow update (#48150)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Dec 19, 2023
1 parent ccbcffc commit 81a4ba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/codeowners-legal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/workflows/check-content-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 81a4ba5

Please sign in to comment.