-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luca Comellini <[email protected]>
- Loading branch information
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,3 +295,37 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: localClone | ||
|
||
test-output: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Clone this repo | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
# Basic checkout using git | ||
- name: Checkout basic | ||
id: checkout | ||
uses: ./ | ||
with: | ||
ref: test-data/v2/basic | ||
|
||
# Verify output | ||
- name: Verify output | ||
run: | | ||
echo "Commit: ${{ steps.checkout.outputs.commit }}" | ||
echo "Ref: ${{ steps.checkout.outputs.ref }}" | ||
if [ "${{ steps.checkout.outputs.ref }}" != "test-data/v2/basic" ]; then | ||
echo "Expected ref to be test-data/v2/basic" | ||
exit 1 | ||
fi | ||
if [ "${{ steps.checkout.outputs.commit }}" != "82f71901cf8c021332310dcc8cdba84c4193ff5d" ]; then | ||
echo "Expected commit to be 82f71901cf8c021332310dcc8cdba84c4193ff5d" | ||
exit 1 | ||
fi | ||
# needed to make checkout post cleanup succeed | ||
- name: Fix Checkout | ||
uses: actions/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters