47 lines
No EOL
834 B
YAML
47 lines
No EOL
834 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: start-github-action
|
|
steps:
|
|
- name: create workflow_dispatch event
|
|
image: itsblue.dev/plugins/github-workflow-controller
|
|
settings:
|
|
github_token:
|
|
from_secret: github-token
|
|
github_repo: "dorianim/drone-runner"
|
|
workflow_id: "drone.yml"
|
|
workflow_actions: start
|
|
|
|
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: macos
|
|
|
|
platform:
|
|
os: darwin
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: test
|
|
commands:
|
|
- sw_vers
|
|
|
|
depends_on:
|
|
- start-github-action
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: stop-github-action
|
|
steps:
|
|
- name: cancel and delete workflow
|
|
image: itsblue.dev/plugins/github-workflow-controller
|
|
settings:
|
|
github_token:
|
|
from_secret: github-token
|
|
github_repo: "dorianim/drone-runner"
|
|
workflow_id: "drone.yml"
|
|
workflow_actions: cancel,delete
|
|
|
|
depends_on:
|
|
- macos |