This repository was archived by the owner on Feb 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ permissions:
88
99
1010jobs :
11- update_release_draft :
11+ test :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v3
@@ -18,20 +18,63 @@ jobs:
1818 with :
1919 checkout_dir : step1
2020
21+ - name : Directory exists
22+ run : |
23+ if [ ! -d ./step1 ]; then
24+ echo '::error:: Should be able to be checked out'
25+ exit 1
26+ fi
27+
2128 - name : Test checkout with branch_name as main
2229 uses : ./
2330 with :
2431 branch_name : main
2532 checkout_dir : step2
2633
34+ - name : Directory exists
35+ run : |
36+ if [ ! -d ./step2 ]; then
37+ echo '::error:: Should be able to be checked out'
38+ exit 1
39+ fi
40+
2741 - name : Test checkout with branch_name as refs/heads/main
2842 uses : ./
2943 with :
3044 branch_name : refs/heads/main
3145 checkout_dir : step3
3246
47+ - name : Directory exists
48+ run : |
49+ if [ ! -d ./step3 ]; then
50+ echo '::error:: Should be able to be checked out'
51+ exit 1
52+ fi
53+
3354 - name : Test checkout and no depth option
3455 uses : ./
3556 with :
3657 depth : ' '
3758 checkout_dir : step4
59+
60+ - name : Directory exists
61+ run : |
62+ if [ ! -d ./step4 ]; then
63+ echo '::error:: Should be able to be checked out'
64+ exit 1
65+ fi
66+
67+ - name : Test dont checkout when env.ACT is presented.
68+ uses : ./
69+ env :
70+ ACT : 1
71+ with :
72+ depth : ' '
73+ checkout_dir : step5
74+
75+ - name : Directory does not exist
76+ run : |
77+ if [ -d ./step5 ]; then
78+ echo '::error:: Should not be able to be checked out, when ACT environment is exists'
79+ exit 1
80+ fi
Original file line number Diff line number Diff line change 3838 using : " composite"
3939 steps :
4040 - shell : bash
41+ if : ${{ !env.ACT }}
4142 run : |
4243 set -xe
4344
You can’t perform that action at this time.
0 commit comments