diff --git a/.github/workflows/auto_restore.yml b/.github/workflows/auto_restore.yml index 5a01a5d..2077175 100644 --- a/.github/workflows/auto_restore.yml +++ b/.github/workflows/auto_restore.yml @@ -1,4 +1,4 @@ -name: Auto-Restore on Dependabot PRs +name: Auto Sync Lock Files on: pull_request: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3492e9d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Trigger build workflow ONLY after Auto Sync Lock Files workflow completes for dependabot NuGet branches + workflow_run: + workflows: [ "Auto Sync Lock Files" ] + types: + - completed + branches: + - 'dependabot/nuget/**' + +jobs: + build: + runs-on: ubuntu-latest + if: | + !(github.actor == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/nuget/')) && + (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.304 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore diff --git a/Subgraphs/Authors/Data/Author.cs b/Subgraphs/Authors/Data/Author.cs index 70765f4..630410b 100644 --- a/Subgraphs/Authors/Data/Author.cs +++ b/Subgraphs/Authors/Data/Author.cs @@ -5,4 +5,6 @@ public class Author public int Id { get; set; } public string Name { get; set; } = default!; + + public string? Bio { get; set; } }