diff --git a/.github/workflows/ci-bats-windows.yaml b/.github/workflows/ci-bats-windows.yaml index d74d860027..5a62e21c8c 100644 --- a/.github/workflows/ci-bats-windows.yaml +++ b/.github/workflows/ci-bats-windows.yaml @@ -1,17 +1,28 @@ name: Test Bats Windows on: - pull_request: - branches: [ main ] + workflow_dispatch: + inputs: + email: + description: 'Email address to receive bats failure notification' + required: true + default: '' + repository_dispatch: + types: [ bats-windows ] jobs: get-files: - name: Get File list + name: Get file list runs-on: ubuntu-18.04 outputs: files: ${{ steps.get_file_list.outputs.files }} steps: - uses: actions/checkout@v2 + if: ${{ github.event_name == 'repository_dispatch' }} + with: + ref: ${{ github.event.client_payload.ref }} + - uses: actions/checkout@v2 + if: ${{ github.event_name == 'workflow_dispatch' }} - name: Get file list id: get_file_list run: | @@ -91,6 +102,11 @@ jobs: with: python-version: ^3.6 - uses: actions/checkout@v2 + if: ${{ github.event_name == 'repository_dispatch' }} + with: + ref: ${{ github.event.client_payload.ref }} + - uses: actions/checkout@v2 + if: ${{ github.event_name == 'workflow_dispatch' }} - uses: actions/setup-node@v1 with: node-version: ^12