Skip to content

Commit f3729e2

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

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,39 @@ jobs:
2222
node-version: [24.x]
2323

2424
steps:
25-
- name: Check out scripts from main branch
26-
uses: actions/checkout@v4
27-
with:
28-
ref: refs/heads/main
29-
sparse-checkout: |
30-
.github/scripts
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
3325
- name: Check out api schemas from en branch
3426
uses: actions/checkout@v4
3527
with:
3628
ref: refs/heads/en
3729
path: openapi
3830
token: ${{ secrets.GITHUB_TOKEN }}
3931

40-
- name: Set up Node.js
41-
uses: actions/setup-node@v4
32+
- name: Check out scripts from main branch
33+
uses: actions/checkout@v4
4234
with:
43-
node-version: ${{ matrix.node-version }}
35+
ref: refs/heads/main
36+
path: main
37+
sparse-checkout: |
38+
.github/scripts
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
41+
# - name: Set up Node.js
42+
# uses: actions/setup-node@v4
43+
# with:
44+
# node-version: ${{ matrix.node-version }}
4445

45-
- name: Install script dependencies
46-
working-directory: .github/scripts
47-
run: npm install
46+
# - name: Install script dependencies
47+
# working-directory: .github/scripts
48+
# run: npm install
4849

49-
- name: Run add-code-samples script
50-
working-directory: .github/scripts
51-
run: npm run add-code-samples -- "../../openapi" "openapi.*\\.json"
50+
# - name: Run add-code-samples script
51+
# working-directory: .github/scripts
52+
# run: npm run add-code-samples -- "../../openapi" "openapi.*\\.json"
5253

5354
- name: Push openapi directory to en-api-docs branch
5455
5556
env:
5657
REPO: self
57-
BRANCH: refs/heads/en-api-docs
58+
BRANCH: en-api-docs
5859
FOLDER: openapi
5960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)