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

* Update dotnet-build.yml

* Update dotnet-build.yml
This commit is contained in:
Xiaoyun Zhang 2024-05-01 18:09:45 -07:00 committed by GitHub
parent e3ccf228e2
commit 1f501b210c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -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 }}
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}