Skip to content

Commit 05b03b5

Browse files
committed
feat: create git repo
1 parent 64332a3 commit 05b03b5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/postman.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,26 @@ jobs:
3030
with:
3131
repository: linode/apl-core
3232
path: apl-core
33-
- name: start core
33+
- name: Create Git repo
34+
run: |
35+
readonly env_dir="$HOME/workspace/linode/values-ofld1"
36+
readonly apl_core_test_fixtures="$HOME/apl-core/tests/fixtures"
37+
mkdir -p "$(dirname $env_dir)"
38+
cp -R $apl_core_test_fixtures $env_dir
39+
cd $env_dir
40+
git init
41+
git checkout -b main
42+
git add .
43+
git commit -a -m 'init'
44+
# Mark this repo as bare so the local_env_dir can push to env_dir repo
45+
git config --bool core.bare true
46+
echo "The values bare repo has been successfully set up"
47+
- name: Start core server
3448
run: |
3549
cd apl-core
3650
npm install
3751
npm run server > /dev/null 2>&1 &
38-
- name: start api
52+
- name: Start api
3953
run: |
4054
npm install
4155
cp .env.sample .env

0 commit comments

Comments
 (0)