Skip to content

Commit

Permalink
OXDEV-7707: Create admin in schema workflow and update credentials in…
Browse files Browse the repository at this point in the history
… command
  • Loading branch information
MarcelOxid committed Jan 3, 2024
1 parent 72e9007 commit ba784ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba784ac

Please sign in to comment.