From 146bcd7bd9935d6a8afe51177a59a73120401d82 Mon Sep 17 00:00:00 2001 From: Katarina Guderud <35999790+katarinagud@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:03:58 +0100 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9d53b8d..86db49e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,7 +1,11 @@ name: 'dotnet build' on: - workflow_dispatch: + push: + branches: + - '**' + pull_request: + types: [ closed ] env: PRERELEASE_BRANCHES: experimental,alpha,beta,rc @@ -97,4 +101,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create ${{ steps.tag.outputs.new_tag }} --target=${{ github.sha }} --title="${{ inputs.component && format('{0} - ',inputs.component) || '' }}v${{ steps.tag.outputs.new_version }}" --notes="${{ steps.tag.outputs.changelog }}" \ No newline at end of file + gh release create ${{ steps.tag.outputs.new_tag }} --target=${{ github.sha }} --title="${{ inputs.component && format('{0} - ',inputs.component) || '' }}v${{ steps.tag.outputs.new_version }}" --notes="${{ steps.tag.outputs.changelog }}"