Skip to content

Commit f9d26ac

Browse files
Do not use pipe operator. (#3863)
* tabs are hard * run on dispatch * avoid pipe * Remove indentations. * Chatgpt is not smart --------- Co-authored-by: Jack He <[email protected]>
1 parent 925ebe4 commit f9d26ac

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/publish-docfx.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ jobs:
4343
- run: ./scripts/generate-docfx-yml.ps1 ./docs
4444
shell: pwsh
4545
- run: docfx docfx.json
46-
46+
- run: chmod +x ./scripts/update-docfx-site.ps1
4747
- name: Commit Changes
48-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
49-
run: |
50-
chmod +x ./scripts/update-docfx-site.ps1
51-
./scripts/update-docfx-site.ps1
52-
shell: pwsh
48+
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch')
49+
run: ./scripts/update-docfx-site.ps1
50+
shell: pwsh

0 commit comments

Comments
 (0)