Skip to content

Create form.yml

Create form.yml #28

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
inputs:
git-ref:
description: Git Ref
required: false
OS:
description: OS
required: false
# Note: not taken into account for push
default: '["ubuntu-latest", "windows-latest"]'
jobs:
test_job:
#if: github.event == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
os: ${{ fromJson(github.event.inputs.OS || '["ubuntu-latest"]') }}
runs-on: ${{ matrix.os }}
steps:
- name: Build
run: echo ${{ github.event_name }}
- name: Fail
if: github.event_name == 'push'
run: exit 1