-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OXDEV-7707: Create admin in schema workflow and update credentials in…
… command
- Loading branch information
1 parent
72e9007
commit ba784ac
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,9 @@ jobs: | |
|
||
steps: | ||
- name: Clone testing environment | ||
run: git clone https://github.com/OXID-eSales/docker-eshop-sdk.git . | ||
run: | | ||
git clone https://github.com/OXID-eSales/docker-eshop-sdk.git . | ||
git clone https://github.com/OXID-eSales/docker-eshop-sdk-recipes recipes/oxid-esales | ||
- name: Clone the shop | ||
run: git clone --depth 1 https://github.com/OXID-eSales/oxideshop_ce.git --branch b-7.0.x --single-branch source | ||
|
@@ -79,9 +81,10 @@ jobs: | |
- name: Generate documentation | ||
run: | | ||
./recipes/oxid-esales/parts/shared/create_admin.sh | ||
sudo npm install -g @2fd/graphdoc | ||
sleep 2; | ||
TOKEN=$(curl --silent http://localhost/graphql?skipSession=1 -H 'Content-Type: application/json' --data-binary '{"query":"query {token(username: \"admin\", password:\"admin\")}"}' | sed -n 's|.*"token":"\(.*\)\"}}|\1|p') | ||
TOKEN=$(curl --silent http://localhost/graphql?skipSession=1 -H 'Content-Type: application/json' --data-binary '{"query":"query {token(username: \"[email protected]\", password:\"admin\")}"}' | sed -n 's|.*"token":"\(.*\)\"}}|\1|p') | ||
graphdoc -e http://localhost/graphql?skipSession=1 -o $GITHUB_WORKSPACE/docs/_static/schema -f -x "Authorization: Bearer $TOKEN" | ||
- name: Deploy | ||
|