chore: remove output
This commit is contained in:
@@ -2,10 +2,6 @@ name: Check Team Approval
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
outputs:
|
|
||||||
has_approval:
|
|
||||||
description: 'Whether the PR has approval from a team/admin member'
|
|
||||||
value: ${{ jobs.check-approval.outputs.has_approval }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-approval:
|
check-approval:
|
||||||
@@ -13,8 +9,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
contents: read
|
contents: read
|
||||||
outputs:
|
|
||||||
has_approval: ${{ steps.check-review.outputs.has_approval }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check for team/admin review
|
- name: Check for team/admin review
|
||||||
@@ -75,9 +69,6 @@ jobs:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set output for the workflow
|
|
||||||
core.setOutput('has_approval', hasValidReview.toString());
|
|
||||||
|
|
||||||
if (!hasValidReview) {
|
if (!hasValidReview) {
|
||||||
console.log('❌ No approved review from team/admin member found');
|
console.log('❌ No approved review from team/admin member found');
|
||||||
core.setFailed('This pull request requires an approved review from a team or admin member');
|
core.setFailed('This pull request requires an approved review from a team or admin member');
|
||||||
|
|||||||
Reference in New Issue
Block a user