2022-08-08 12:04:34 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: start-github-action
|
|
|
|
steps:
|
|
|
|
- name: create workflow_dispatch event
|
|
|
|
image: alpine/curl
|
|
|
|
commands:
|
2022-08-08 12:11:14 +02:00
|
|
|
- "curl -X POST -H \"Accept: application/vnd.github+json\" -H \"Authorization: token $GITHUB_TOKEN\" https://api.github.com/repos/dorianim/drone-runner/actions/workflows/drone.yml/dispatches -d '{\"ref\":\"main\",\"inputs\":{}}'"
|
2022-08-08 12:04:34 +02:00
|
|
|
environment:
|
|
|
|
GITHUB_TOKEN:
|
|
|
|
from_secret: github-token
|
2022-08-08 12:05:50 +02:00
|
|
|
|
2022-08-08 11:44:52 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2022-08-08 11:45:28 +02:00
|
|
|
name: macos
|
2022-08-08 11:44:52 +02:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: darwin
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
commands:
|
|
|
|
- sw_vers
|
2022-08-08 12:04:34 +02:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- start-github-action
|
2022-08-08 11:44:52 +02:00
|
|
|
|