Skip to content

Commit

Permalink
Enable manually triggering main workflow in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Feb 28, 2025
1 parent 787153a commit 195df7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
branches:
- main

workflow_dispatch:

jobs:
unit-test:
name: Run checks
if: ${{ github.event.pull_request.merged == true }}
if: ${{ github.event.pull_request.merged == true || (github.event_name == 'workflow_dispatch' && github.ref_name == 'main') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +34,7 @@ jobs:
publish:
name: Publish
needs: unit-test
if: ${{ github.event.pull_request.merged == true && !contains(github.event.pull_request.title, '[skip publish]') }}
if: ${{ !contains(github.event.pull_request.title, '[skip publish]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 195df7e

Please sign in to comment.