Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 77bcf61

Browse files
committed
branch_nameにoriginが含まれているときに失敗するテストを追加した
1 parent 9152f4d commit 77bcf61

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ jobs:
5757
exit 1
5858
fi
5959
60+
- name: Test checkout with branch_name as origin/main
61+
continue-on-error: true
62+
uses: ./
63+
with:
64+
branch_name: origin/main
65+
checkout_dir: step.branch_name_include_origin
66+
67+
- name: Directory does not exists
68+
run: |
69+
if [ -d ./step.branch_name_include_origin ]; then
70+
echo '::error:: Should fail checking out'
71+
exit 1
72+
fi
73+
6074
- name: Test checkout and no depth option
6175
uses: ./
6276
with:

0 commit comments

Comments
 (0)