mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
# Motivation In the future, we want to share the workflow definition across multiple repos to avoid duplication. # Modification This PR extracts the current workflow definition into a reusable workflow and calls the reusable workflow from a new workflow that is triggered on PR events. The new reusable workflow starts off with a few simple inputs to enable/disable the three current jobs. By default all jobs are enabled. # Result First step into reusability of our workflow.
10 lines
220 B
YAML
10 lines
220 B
YAML
name: Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize, ready_for_review]
|
|
|
|
jobs:
|
|
call-reusable-pull-request-workflow:
|
|
name: Checks
|
|
uses: ./.github/workflows/reusable_pull_request.yml |