Skip to content

Commit 68256d1

Browse files
authored
Update gen_docs.yml
1 parent 67c9485 commit 68256d1

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/gen_docs.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Gen Internal Docs
21

2+
name: Generate Internal Docs
33
on:
44
push:
55
branches:
@@ -22,17 +22,9 @@ jobs:
2222
REPO_GH_PAT=${{secrets.REPO_GH_PAT}}
2323
GITHUB_REPOSITORY="${{ github.repository }}"
2424
GITHUB_ACTOR="${{ github.actor }}"
25-
# curl -X POST -H "Content-Type: application/json" \
26-
# -H "X-API-KEY: $API_KEY" \
27-
# -d '{"apiKey": "'$API_KEY'", "repo_gh_pat": "'$REPO_GH_PAT'", "githubRepository": "'$GITHUB_REPOSITORY'", "default_time": 50}' \
28-
# "${{ secrets.GENERATE_ENDPOINT_URL }}"
29-
curl --location "${{ secrets.GENERATE_ENDPOINT_URL }}" \
30-
--header 'Content-Type: application/json' \
31-
--data '{
32-
"githubRepository": "'$GITHUB_REPOSITORY'",
33-
"apiKey": "'$API_KEY'",
34-
"default_time": 50,
35-
"repo_gh_pat": "'$REPO_GH_PAT'"
36-
}'
25+
curl -X POST -H "Content-Type: application/json" \
26+
-H "X-API-KEY: $API_KEY" -d '{"apiKey": "'$API_KEY'", "repo_gh_pat": "'$REPO_GH_PAT'", "timestamp": "'$TIMESTAMP'", "githubRepository": "'$GITHUB_REPOSITORY'", "githubActor": "'$GITHUB_ACTOR'"}' \
27+
"https://api.devdocsapp.com/company/devdocsprod/generate_internal_docs"
3728
env:
3829
API_KEY: ${{ secrets.API_KEY }}
30+
REPO_GH_PATH: ${{ secrets.REPO_GH_PATH}}

0 commit comments

Comments
 (0)