mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
chore: workflow call with no inputs
This commit is contained in:
parent
bfb68c3464
commit
f487f93441
7
.github/workflows/check-team-approval.yml
vendored
7
.github/workflows/check-team-approval.yml
vendored
@ -2,11 +2,6 @@ name: Check Team Approval
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
pr_number:
|
||||
required: true
|
||||
type: number
|
||||
description: 'Pull request number to check'
|
||||
outputs:
|
||||
has_approval:
|
||||
description: 'Whether the PR has approval from a team/admin member'
|
||||
@ -28,7 +23,7 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const { owner, repo } = context.repo;
|
||||
const prNumber = ${{ inputs.pr_number }};
|
||||
const prNumber = context.payload.pull_request.number;
|
||||
|
||||
console.log(`Checking reviews for PR #${prNumber}`);
|
||||
|
||||
|
2
.github/workflows/required-reviewers.yml
vendored
2
.github/workflows/required-reviewers.yml
vendored
@ -7,8 +7,6 @@ on:
|
||||
jobs:
|
||||
check-member-review:
|
||||
uses: ./.github/workflows/check-team-approval.yml
|
||||
with:
|
||||
pr_number: ${{ github.event.pull_request.number }}
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
|
Loading…
x
Reference in New Issue
Block a user