Skip to content

Commit 6b08e74

Browse files
committed
add fork_full_name
1 parent c70a82f commit 6b08e74

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ As seen above, we have two steps. One for a noop deploy, and one for a regular d
267267
| fork_ref | The true ref of the fork |
268268
| fork_label | The API label field returned for the fork |
269269
| fork_checkout | The console command presented in the GitHub UI to checkout a given fork locally |
270+
| fork_full_name | The full name of the fork in "org/repo" format |
270271

271272
## Custom Deployment Messages ✏️
272273

action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ outputs:
8484
description: 'The API label field returned for the fork'
8585
fork_checkout:
8686
description: 'The console command presented in the GitHub UI to checkout a given fork locally'
87+
fork_full_name:
88+
description: 'The full name of the fork in "org/repo" format'
8789
runs:
8890
using: "node16"
8991
main: "dist/index.js"

dist/index.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/functions/prechecks.js

+3
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ export async function prechecks(
6161
const label = pr.data.head.label
6262
const forkRef = pr.data.head.ref
6363
const forkCheckout = `${label.replace(':', '-')} ${forkRef}`
64+
const forkFullName = pr.data.head.repo.full_name
6465
core.setOutput('fork_ref', forkRef)
6566
core.setOutput('fork_label', label)
6667
core.setOutput('fork_checkout', forkCheckout)
68+
core.setOutput('fork_full_name', forkFullName)
6769
core.debug(`fork_ref: ${forkRef}`)
6870
core.debug(`fork_label: ${label}`)
6971
core.debug(`fork_checkout: ${forkCheckout}`)
72+
core.debug(`fork_full_name: ${forkFullName}`)
7073

7174
// If this pull request is a fork, use the exact SHA rather than the branch name
7275
ref = pr.data.head.sha

0 commit comments

Comments
 (0)