Compare commits

...

3 Commits

Author SHA1 Message Date
Claas Augner a09353efaa
Merge dbdf390b9d into df4cb1c069 2026-06-05 11:13:20 +02:00
Yashwanth Anantharaju df4cb1c069
Update changelog for v6.0.3 (#2446) 2026-06-02 10:31:30 -04:00
Claas Augner dbdf390b9d
Add path output 2025-12-08 15:42:36 +01:00
5 changed files with 14 additions and 0 deletions

View File

@ -345,6 +345,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"
@ -355,3 +356,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

@ -1,5 +1,9 @@
# Changelog
## v6.0.3
* Fix checkout init for SHA-256 repositories by @yaananth in https://github.com/actions/checkout/pull/2439
* fix: expand merge commit SHA regex and add SHA-256 test cases by @yaananth in https://github.com/actions/checkout/pull/2414
## v6.0.2
* Fix tag handling: preserve annotations and explicit fetch-tags by @ericsciple in https://github.com/actions/checkout/pull/2356

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

@ -2206,6 +2206,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'}, '')