Skip to content

Commit

Permalink
Updated DocFx version and added branch env variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
open-collar committed Dec 11, 2020
1 parent 7f3fe2d commit 51b6f8a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ jobs:
with:
dotnet-version: 3.1.100

- name: Get branch name (merge)
if: github.event_name != 'pull_request'
shell: bash
run: |
echo "DOCFX_SOURCE_BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
echo "Branch: $DOCFX_SOURCE_BRANCH_NAME"
- name: Get branch name (pull request)
if: github.event_name == 'pull_request'
shell: bash
run: |
echo "DOCFX_SOURCE_BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
echo "Branch: $DOCFX_SOURCE_BRANCH_NAME"
- name: Generate revision number
uses: einaregilsson/build-number@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion docs-src/ApiDocs/ApiDocs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="docfx.console" Version="2.49.0">
<PackageReference Include="docfx.console" Version="2.56.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 51b6f8a

Please sign in to comment.