From a61e081a75cee6d2a6c66d1c58819e9d63656a51 Mon Sep 17 00:00:00 2001 From: Nishant Arora <1895906+whizzzkid@users.noreply.github.com> Date: Thu, 2 Feb 2023 20:10:29 -0700 Subject: [PATCH] fix: :fire: Allow automation to run from manual triggers. (#1143) * fix: :fire: Allow automation to run from manual triggers. * Update .github/workflows/ci.yml Co-authored-by: Marcin Rataj * Update .github/workflows/ci.yml Co-authored-by: Marcin Rataj --------- Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Co-authored-by: Marcin Rataj --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4021e75e4..c2e0d6094 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: release-pr: runs-on: ubuntu-latest needs: [test] - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') steps: - uses: google-github-actions/release-please-action@v3.7.3 with: @@ -108,7 +108,7 @@ jobs: release-assets: runs-on: ubuntu-latest needs: [test] - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + if: contains(github.ref, 'refs/tags/') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') steps: - name: Check out Git repository uses: actions/checkout@v3.3.0