/.github/workflows/ci-bats-windows.yaml: stop bats windows on pr

This commit is contained in:
Dustin Brown
2022-03-01 08:56:21 -08:00
parent 75a7011814
commit cc59bef1f9

View File

@@ -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