Skip to content

Commit 5f7d1df

Browse files
committed
dont need repo name
1 parent ae297c8 commit 5f7d1df

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/generate-preview-sample.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
description: "Pull Request number"
88
required: true
99
type: string
10-
repo:
11-
description: "Repository (owner/repo)"
12-
required: true
13-
type: string
1410

1511
permissions:
1612
contents: write
@@ -31,7 +27,7 @@ jobs:
3127
script: |
3228
const prNumber = Number('${{ inputs.pr_number }}');
3329
34-
const [owner, repo] = '${{ inputs.repo }}'.split('/');
30+
const [owner, repo] = '${{ github.repository }}'.split('/');
3531

3632
const { data: pr } = await github.rest.pulls.get({
3733
owner,

0 commit comments

Comments
 (0)