Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,24 @@ jobs:
name: Build (${{ matrix.release.type }})

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.0.x

- name: Replace SharpHound library refs with git-dev
run: |
CSPROJ_FILES=$(grep -rl --include="*.csproj" 'PackageReference Include="SharpHoundCommon"' .)
for csproj in "${CSPROJ_FILES[@]}"; do
sed -i "s|<PackageReference Include=\"SharpHoundCommon\" Version=\"[^\"]*\" />|<PackageReference Include=\"SharpHoundCommon\" Version=\"git-dev\" />|" $csproj
done
CSPROJ_FILES=$(grep -rl --include="*.csproj" 'PackageReference Include="SharpHoundRPC"' .)
for csproj in "${CSPROJ_FILES[@]}"; do
sed -i "s|<PackageReference Include=\"SharpHoundCommon\" Version=\"[^\"]*\" />|<PackageReference Include=\"SharpHoundRPC\" Version=\"git-dev\" />|" $csproj
done

- name: Restore Dependencies
run: dotnet restore

Expand All @@ -43,7 +54,7 @@ jobs:

- name: Update Rolling Release
if: "! startsWith(github.event_name, 'pull_request')"
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Rolling Release (unstable)
tag_name: rolling
Expand Down