From bc48db4ef7b4a36bec245ec2f848d29d2f9696b6 Mon Sep 17 00:00:00 2001 From: Srdjan Zivojinovic Date: Fri, 23 Aug 2024 13:17:05 +0200 Subject: [PATCH 1/2] Revert "Remove pull request from triggering ci.yml" This reverts commit aeedd3de4c817bef8016c9ff45439628b8faa1c8. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0674ad..4962d6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: build: runs-on: ubuntu-latest From 51881d326df6e7c76bd2112bb826f3875f6db955 Mon Sep 17 00:00:00 2001 From: Srdjan Zivojinovic Date: Fri, 23 Aug 2024 13:17:38 +0200 Subject: [PATCH 2/2] Push to nuget only if commit was done on main branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4962d6b..8674102 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: run: ./Build.ps1 shell: pwsh - name: Push to NuGet + if: github.ref == 'refs/heads/main' env: NUGET_URL: https://api.nuget.org/v3/index.json NUGET_API_KEY: ${{ secrets.NUGET_FRAKTALIO_CI_API_KEY }}