Skip to content

Commit a24d794

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,28 @@ jobs:
5050
working-directory: .github/scripts
5151
run: npm run add-code-samples -- "../../openapi" "openapi.*\\.json"
5252

53+
- name: Debug - show OpenAPI file changes before publish
54+
working-directory: openapi
55+
run: |
56+
echo "== Files in ./openapi (target of publish) =="
57+
ls -la
58+
echo ""
59+
echo "== Git status (porcelain) =="
60+
git status --porcelain || true
61+
echo ""
62+
echo "== Git diff (stat) =="
63+
git diff --stat || true
64+
echo ""
65+
echo "== Git diff (names) =="
66+
git diff --name-only || true
67+
echo ""
68+
echo "== SHA256 for openapi*.json (for quick comparison in logs) =="
69+
shasum -a 256 openapi*.json || true
70+
5371
- name: Push openapi directory to en-api-docs branch
5472
5573
env:
5674
REPO: self
57-
BRANCH: refs/heads/en-api-docs
75+
BRANCH: en-api-docs
5876
FOLDER: openapi
5977
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)