Skip to content

Commit 1b0dd85

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

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

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

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,32 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
ref: refs/heads/main
29-
sparse-checkout: |
30-
.github/scripts
3129
token: ${{ secrets.GITHUB_TOKEN }}
3230

33-
- name: Check out api schemas from en branch
34-
uses: actions/checkout@v4
35-
with:
36-
ref: refs/heads/en
37-
path: openapi
38-
token: ${{ secrets.GITHUB_TOKEN }}
31+
# - name: Check out api schemas from en branch
32+
# uses: actions/checkout@v4
33+
# with:
34+
# ref: refs/heads/en
35+
# path: openapi
36+
# token: ${{ secrets.GITHUB_TOKEN }}
3937

40-
- name: Set up Node.js
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: ${{ matrix.node-version }}
38+
# - name: Set up Node.js
39+
# uses: actions/setup-node@v4
40+
# with:
41+
# node-version: ${{ matrix.node-version }}
4442

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

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

5351
- name: Push openapi directory to en-api-docs branch
5452
uses: s0/git-publish-subdir-action@v2.6.0
5553
env:
5654
REPO: self
57-
BRANCH: refs/heads/en-api-docs
55+
BRANCH: en-api-docs
5856
FOLDER: openapi
5957
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)