diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 79c04a8..47db5a4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,10 +1,8 @@
name: Build
on:
- push:
- branches: [ dev ]
pull_request:
- branches: [ dev ]
+ types: [opened, synchronize]
jobs:
build:
@@ -17,20 +15,31 @@ jobs:
matrix:
release:
- type: Debug
- suffix: '-debug'
+ suffix: "-debug"
- type: Release
- suffix: ''
+ suffix: ""
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: |
+ grep -rl --include="*.csproj" 'PackageReference Include="SharpHoundCommon"' . \
+ | while IFS= read -r csproj; do
+ sed -i "s|||" $csproj
+ done
+ grep -rl --include="*.csproj" 'PackageReference Include="SharpHoundRPC"' . \
+ | while IFS= read -r csproj; do
+ sed -i "s|||" $csproj
+ done
+
- name: Restore Dependencies
run: dotnet restore
@@ -43,7 +52,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