Skip to content

Commit 35148fe

Browse files
committed
fix(ci): changes bash flag
1 parent a2690c4 commit 35148fe

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,15 @@ jobs:
103103
104104
- name: Run git config test in container
105105
run: |
106-
docker exec ${{ steps.container.outputs.container_name }} bash -ic "
107-
echo 'Load the Nix environment'
108-
source /root/.nix-profile/etc/profile.d/nix.sh
109-
echo 'Git test'
106+
docker exec ${{ steps.container.outputs.container_name }} \
107+
bash -c "PATH=~/.nix-profile/bin:\$PATH;
110108
git config --global user.name | grep -q 'PedroBrantes'
111109
"
112110
113111
- name: Run env test in container
114112
run: |
115-
docker exec ${{ steps.container.outputs.container_name }} bash -ic "
116-
echo 'Load the Nix environment'
117-
source /root/.nix-profile/etc/profile.d/nix.sh
118-
echo 'Env test'
113+
docker exec ${{ steps.container.outputs.container_name }} \
114+
bash -c "PATH=~/.nix-profile/bin:\$PATH;
119115
printenv EDITOR | grep -q 'nvim'
120116
"
121117

0 commit comments

Comments
 (0)