diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 054f7bf..9cfa9ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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