From cc59bef1f9fa53e507a484fb2b18b5434a72d16c Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 1 Mar 2022 08:56:21 -0800 Subject: [PATCH] /.github/workflows/ci-bats-windows.yaml: stop bats windows on pr --- .github/workflows/ci-bats-windows.yaml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) 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