Update '.drone.yml'
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dorian Zedler 2022-08-08 14:36:26 +02:00
parent d85a87a521
commit 6422ba4619

View file

@ -4,12 +4,13 @@ type: docker
name: start-github-action name: start-github-action
steps: steps:
- name: create workflow_dispatch event - name: create workflow_dispatch event
image: alpine/curl image: itsblue.dev/plugins/github-workflow-controller
commands: settings:
- "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\":{}}'" github_token:
environment:
GITHUB_TOKEN:
from_secret: github-token from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: start
--- ---
kind: pipeline kind: pipeline
@ -28,3 +29,19 @@ steps:
depends_on: depends_on:
- start-github-action - start-github-action
---
kind: pipeline
type: docker
name: stop-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: stop,delete
depends_on:
- macos