Skip to content

Commit 49f0e77

Browse files
committed
test docs commit message
1 parent 5220148 commit 49f0e77

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ jobs:
156156
- name: Generate documentation
157157
shell: pwsh
158158
env:
159-
# TODO: Does this use tag instead of branch name?
160159
DOCFX_SOURCE_BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
161160
run: |
162161
Write-Host "Using docfx branch name: $env:DOCFX_SOURCE_BRANCH_NAME"
@@ -290,17 +289,14 @@ jobs:
290289
dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json'
291290
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
292291
- name: Publish documentation
293-
# TODO: Should also publish on release tag, but only from master - @($(git branch --remotes --contains v5.0.0 | select-object -first 1) -split '/')[1]
294292
#if: github.event_name == 'push' && github.ref == 'refs/heads/master'
295293
uses: peaceiris/actions-gh-pages@v3
296294
with:
297295
# TODO: Test a real deployment (change target to "gh-pages" branch below)
298296
github_token: ${{ secrets.GITHUB_TOKEN }}
299297
publish_branch: gh-pages-test
300298
publish_dir: ./documentation
301-
#user_name: 'github-actions-bot'
302-
#user_email: 'github-actions-bot@users.noreply.github.com'
303-
#commit_message: 'Automated commit from cibuild'
299+
commit_message: 'Auto-generated documentation from: ${{ github.event.head_commit.message }}'
304300
- name: Publish to NuGet
305301
# TODO: Test this
306302
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)