Skip to content

A programming framework for agentic AI

Update dotnet-build.yml to add merge_group trigger (#2567)

Xiaoyun Zhang1f501b210c62
diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml
index 1735e71a8..2e679412f 100644
--- a/.github/workflows/dotnet-build.yml
+++ b/.github/workflows/dotnet-build.yml
@@ -9,6 +9,8 @@ on:
branches: [ "main" ]
push:
branches: [ "main" ]
+ merge_group:
+ types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
@@ -31,9 +33,14 @@ jobs:
filters: |
dotnet:
- "dotnet/**"
+ workflows:
+ - ".github/workflows/**"
- name: dotnet has changes
run: echo "dotnet has changes"
if: steps.filter.outputs.dotnet == 'true'
+ - name: workflows has changes
+ run: echo "workflows has changes"
+ if: steps.filter.outputs.workflows == 'true'
build:
name: Dotnet Build
runs-on: ubuntu-latest
@@ -157,4 +164,4 @@ jobs:
ls -R ./output/nightly
dotnet nuget push --api-key ${{ secrets.MYGET_TOKEN }} --source "https://www.myget.org/F/agentchat/api/v3/index.json" ./output/nightly/*.nupkg --skip-duplicate
env:
- MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}
\ No newline at end of file
+ MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}