Skip to content

Commit

Permalink
add source control information
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshnj committed Nov 18, 2024
1 parent 6df79d0 commit ca5feb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:

name: .NET

env:
BRANCH: ${{ github.head_ref || github.ref_name }}
COMMIT_SHA: ${{ github.sha }}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -108,7 +112,7 @@ jobs:

- name: Pack
run: |
dotnet pack .\windows\libdatadog.csproj -p:LibDatadogBinariesOutputDir=..\bin -p:LibDatadogVersion="42.0.0" -o .nuget\packages\
dotnet pack .\windows\libdatadog.csproj -p:LibDatadogBinariesOutputDir=..\bin -p:LibDatadogVersion="42.0.0" -p:RepositoryBranch=$env:BRANCH -p:RepositoryCommit=$env:COMMIT_SHA -o .nuget\packages\
- name: Store artifacts
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions windows/libdatadog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<PackageReleaseNotes>Release of libdatadog</PackageReleaseNotes>
<Copyright>Copyright 2022 Datadog, Inc.</Copyright>
<PackageTags>Datadog;native;</PackageTags>
<RepositoryUrl>https://github.com/DataDog/libdatadog</RepositoryUrl>
<RepositoryBranch>$(RepositoryBranch)</RepositoryBranch>
<RepositoryCommit>$(RepositoryCommit)</RepositoryCommit>
<RepositoryType>git</RepositoryType>
<!-- <CodeAnalysisRuleSet Condition="'$(CodeAnalysisRuleSet)' == ''">$(SolutionDir)CustomizedAllRules.ruleset</CodeAnalysisRuleSet> -->

Expand Down

0 comments on commit ca5feb8

Please sign in to comment.