diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b63fc2fc..385df1c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,22 @@ -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + inputs: + ref: + description: 'The branch, tag or SHA to checkout' + default: main + type: string jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ inputs.ref || github.ref }} - uses: ruby/setup-ruby@v1 with: bundler-cache: true