Skip to content

Commit f903d14

Browse files
committed
Fix CI checkout
1 parent 5e2fa0d commit f903d14

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/CI.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,22 @@ jobs:
105105
defaults:
106106
run:
107107
shell: su - swifter -c "/bin/bash --login -eo pipefail {0}"
108-
working-directory: /home/swifter
109108
steps:
110109
- name: Create a new user
111110
shell: bash
112-
working-directory: /
113111
run: |
114112
yum install sudo usermode -y
115113
useradd swifter
116114
echo "swifter ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
117115
118116
- name: Checkout
119117
uses: actions/checkout@v2
118+
with:
119+
path: repo
120+
121+
- name: Move repo
122+
run: |
123+
sudo mv GITHUB_WORKSPACE/repo/* $HOME
120124
121125
- name: Test swiftbox version
122126
run: |
@@ -198,11 +202,9 @@ jobs:
198202
defaults:
199203
run:
200204
shell: su - swifter -c "/bin/bash --login -eo pipefail {0}"
201-
working-directory: /home/swifter
202205
steps:
203206
- name: Create a new user
204207
shell: bash
205-
working-directory: /
206208
run: |
207209
yum install sudo usermode -y
208210
useradd swifter
@@ -214,6 +216,12 @@ jobs:
214216

215217
- name: Checkout
216218
uses: actions/checkout@v2
219+
with:
220+
path: repo
221+
222+
- name: Move repo
223+
run: |
224+
sudo mv $GITHUB_WORKSPACE/repo/* $HOME
217225
218226
- name: Test swiftbox version
219227
run: |

0 commit comments

Comments
 (0)