Skip to content

Commit 5c8b70c

Browse files
committed
Add path output
1 parent 8e8c483 commit 5c8b70c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ outputs:
103103
description: 'The branch, tag or SHA that was checked out'
104104
commit:
105105
description: 'The commit SHA that was checked out'
106+
path:
107+
description: 'The absolute path that was checked out to'
106108
runs:
107109
using: node24
108110
main: dist/index.js

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ async function run(): Promise<void> {
2020
// Get sources
2121
await gitSourceProvider.getSource(sourceSettings)
2222
core.setOutput('ref', sourceSettings.ref)
23+
core.setOutput('path', sourceSettings.repositoryPath)
2324
} finally {
2425
// Unregister problem matcher
2526
coreCommand.issueCommand('remove-matcher', {owner: 'checkout-git'}, '')

0 commit comments

Comments
 (0)