Skip to content

Commit e116d47

Browse files
committed
fix: set target branch
1 parent 2c6c824 commit e116d47

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/en-api-docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v4
3535
with:
3636
ref: refs/heads/en
37-
path: openapi
37+
path: api-schemas
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939

4040
- name: Set up Node.js
@@ -48,12 +48,15 @@ jobs:
4848

4949
- name: Run add-code-samples script
5050
working-directory: .github/scripts
51-
run: npm run add-code-samples -- "../../openapi" "openapi.*\\.json"
51+
run: npm run add-code-samples -- "../../api-schemas" "openapi.*\\.json"
5252

53-
- name: Push openapi directory to en-api-docs branch
53+
- name: Run add-code-samples script
54+
run: echo "README" > api-schemas/README.md
55+
56+
- name: Push processed files to en-api-docs branch
5457
5558
env:
5659
REPO: self
5760
BRANCH: refs/heads/en-api-docs
58-
FOLDER: openapi
61+
FOLDER: api-schemas
5962
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)