Merge dbdf390b9df86be0ae194023365148d91d2b05a9 into 8e8c483db84b4bee98b60c0593521ed34d9990e8

This commit is contained in:
Claas Augner 2025-12-08 14:42:44 +00:00 committed by GitHub
commit 56c07e9378
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 0 deletions

View File

@ -334,6 +334,7 @@ jobs:
run: |
echo "Commit: ${{ steps.checkout.outputs.commit }}"
echo "Ref: ${{ steps.checkout.outputs.ref }}"
echo "Path: ${{ steps.checkout.outputs.path }}"
if [ "${{ steps.checkout.outputs.ref }}" != "test-data/v2/basic" ]; then
echo "Expected ref to be test-data/v2/basic"
@ -344,3 +345,8 @@ jobs:
echo "Expected commit to be 82f71901cf8c021332310dcc8cdba84c4193ff5d"
exit 1
fi
if [[ "${{ steps.checkout.outputs.path }}" != *"/cloned-using-local-action" ]]; then
echo "Expected path to end with /cloned-using-local-action"
exit 1
fi

View File

@ -103,6 +103,8 @@ outputs:
description: 'The branch, tag or SHA that was checked out'
commit:
description: 'The commit SHA that was checked out'
path:
description: 'The absolute path that was checked out to'
runs:
using: node24
main: dist/index.js

1
dist/index.js vendored
View File

@ -2135,6 +2135,7 @@ function run() {
// Get sources
yield gitSourceProvider.getSource(sourceSettings);
core.setOutput('ref', sourceSettings.ref);
core.setOutput('path', sourceSettings.repositoryPath);
}
finally {
// Unregister problem matcher

View File

@ -20,6 +20,7 @@ async function run(): Promise<void> {
// Get sources
await gitSourceProvider.getSource(sourceSettings)
core.setOutput('ref', sourceSettings.ref)
core.setOutput('path', sourceSettings.repositoryPath)
} finally {
// Unregister problem matcher
coreCommand.issueCommand('remove-matcher', {owner: 'checkout-git'}, '')