mirror of
https://github.com/actions/checkout.git
synced 2025-12-16 19:35:45 +02:00
Add path output
This commit is contained in:
parent
8e8c483db8
commit
dbdf390b9d
4 changed files with 10 additions and 0 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue