Skip to content

Commit 786a732

Browse files
committed
DOC-13264 fix
1 parent 59cd463 commit 786a732

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/update-open-api.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
run-name: Update OpenAPI specs (${{ inputs.uuid}})
1111

1212
jobs:
13-
update-openapi-api:
13+
update-open-api:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: checkout repo
@@ -20,7 +20,15 @@ jobs:
2020
run: npm i -g @redocly/cli@latest
2121

2222
- name: run Redocly
23-
run: ./modules/ROOT/generate-docs.sh
23+
env:
24+
GH_TOKEN: ${{ github.token }}
25+
run: |
26+
USER=$(gh api user -q .login)
27+
TOKEN=$(gh auth token)
28+
29+
echo "https://${USER}:${TOKEN}@github.com" > ~/.git-credentials
30+
31+
./modules/ROOT/generate-docs.sh
2432
2533
- name: diff and raise PR
2634
env:

modules/ROOT/generate-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -exuo pipefail
44

0 commit comments

Comments
 (0)