File tree Expand file tree Collapse file tree 4 files changed +64
-7
lines changed Expand file tree Collapse file tree 4 files changed +64
-7
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,29 @@ jobs:
47
47
48
48
echo "enabled=$enabled" >> $GITHUB_OUTPUT
49
49
50
- - name : Checkout Repository
51
- uses : actions/checkout@v4
50
+ - name : Checkout base repository
52
51
if : ${{ steps.check-build.outputs.enabled == 'true' }}
52
+ uses : actions/checkout@v4
53
53
with :
54
54
ref : ${{ github.event.pull_request.head.sha || github.sha }}
55
+ persist-credentials : false
56
+ sparse-checkout-cone-mode : false
57
+ sparse-checkout : |
58
+ /*
59
+ !.github
60
+
61
+ - name : Checkout Scripts
62
+ if : ${{ steps.check-build.outputs.enabled == 'true' }}
63
+ uses : actions/checkout@v4
64
+ with :
65
+ persist-credentials : false
66
+ sparse-checkout-cone-mode : false
67
+ sparse-checkout : .github/*
68
+
69
+ - name : Cat scripts
70
+ if : ${{ steps.check-build.outputs.enabled == 'true' }}
71
+ run : |
72
+ cat .github/scripts/tests_build.sh
55
73
56
74
- name : Get libs cache
57
75
uses : actions/cache@v4
Original file line number Diff line number Diff line change @@ -49,11 +49,24 @@ jobs:
49
49
50
50
echo "enabled=$enabled" >> $GITHUB_OUTPUT
51
51
52
- - name : Checkout repository
52
+ - name : Checkout base repository
53
53
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
54
54
uses : actions/checkout@v4
55
55
with :
56
56
ref : ${{ github.event.pull_request.head.sha || github.sha }}
57
+ persist-credentials : false
58
+ sparse-checkout-cone-mode : false
59
+ sparse-checkout : |
60
+ /*
61
+ !.github
62
+
63
+ - name : Checkout Scripts
64
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
65
+ uses : actions/checkout@v4
66
+ with :
67
+ persist-credentials : false
68
+ sparse-checkout-cone-mode : false
69
+ sparse-checkout : .github/*
57
70
58
71
# setup-python currently only works on ubuntu images
59
72
# - uses: actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -45,11 +45,24 @@ jobs:
45
45
46
46
echo "enabled=$enabled" >> $GITHUB_OUTPUT
47
47
48
- - name : Checkout repository
48
+ - name : Checkout base repository
49
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
49
50
uses : actions/checkout@v4
50
- if : steps.check-tests.outputs.enabled == 'true'
51
51
with :
52
52
ref : ${{ github.event.pull_request.head.sha || github.sha }}
53
+ persist-credentials : false
54
+ sparse-checkout-cone-mode : false
55
+ sparse-checkout : |
56
+ /*
57
+ !.github
58
+
59
+ - name : Checkout Scripts
60
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
61
+ uses : actions/checkout@v4
62
+ with :
63
+ persist-credentials : false
64
+ sparse-checkout-cone-mode : false
65
+ sparse-checkout : .github/*
53
66
54
67
- uses : actions/setup-python@v5
55
68
if : steps.check-tests.outputs.enabled == 'true'
Original file line number Diff line number Diff line change @@ -53,11 +53,24 @@ jobs:
53
53
54
54
echo "enabled=$enabled" >> $GITHUB_OUTPUT
55
55
56
- - name : Checkout Repository
56
+ - name : Checkout base repository
57
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
57
58
uses : actions/checkout@v4
58
- if : steps.check-tests.outputs.enabled == 'true'
59
59
with :
60
60
ref : ${{ github.event.pull_request.head.sha || github.sha }}
61
+ persist-credentials : false
62
+ sparse-checkout-cone-mode : false
63
+ sparse-checkout : |
64
+ /*
65
+ !.github
66
+
67
+ - name : Checkout Scripts
68
+ if : ${{ steps.check-tests.outputs.enabled == 'true' }}
69
+ uses : actions/checkout@v4
70
+ with :
71
+ persist-credentials : false
72
+ sparse-checkout-cone-mode : false
73
+ sparse-checkout : .github/*
61
74
62
75
- uses : actions/setup-python@v5
63
76
if : steps.check-tests.outputs.enabled == 'true'
You can’t perform that action at this time.
0 commit comments