Skip to content

Commit

Permalink
fix: 🔥 Allow automation to run from manual triggers. (#1143)
Browse files Browse the repository at this point in the history
* fix: 🔥 Allow automation to run from manual triggers.

* Update .github/workflows/ci.yml

Co-authored-by: Marcin Rataj <lidel@lidel.org>

* Update .github/workflows/ci.yml

Co-authored-by: Marcin Rataj <lidel@lidel.org>

---------

Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
3 people committed Feb 3, 2023
1 parent 1ed411e commit a61e081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a61e081

Please sign in to comment.