From 7e3bd83ad4f55a61f4d9f193627ddd317e4bb664 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 8 Aug 2022 12:04:34 +0200 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7c39aa7..643daeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,19 @@ steps: when: event: tag +--- +kind: pipeline +type: docker +name: start-github-action +steps: +- name: create workflow_dispatch event + image: alpine/curl + commands: + - 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":{}}' + - sleep 10 + environment: + GITHUB_TOKEN: + from_secret: github-token --- kind: pipeline type: exec @@ -29,4 +42,7 @@ steps: - name: test commands: - sw_vers + +depends_on: +- start-github-action \ No newline at end of file