From 7de6cf6a350efab851d962e85591fc8022087170 Mon Sep 17 00:00:00 2001 From: verchol Date: Sun, 28 Jul 2019 08:42:50 +0300 Subject: [PATCH 1/5] fix --- .codefresh/codefresh.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .codefresh/codefresh.yaml diff --git a/.codefresh/codefresh.yaml b/.codefresh/codefresh.yaml new file mode 100644 index 0000000..e69de29 From 6f5646225795bafd840f4f4d656633bb5ac970c4 Mon Sep 17 00:00:00 2001 From: verchol Date: Thu, 8 Aug 2019 07:38:23 +0300 Subject: [PATCH 2/5] fix --- .github/main.workflow | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 065e5a8..fb3036f 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,13 +1,9 @@ -workflow "pipeline runner" { +workflow "test" { on = "push" - resolves = "run pipeline" + resolves = ["demo"] } - -action "run pipeline" { - uses = "./" - env = { - TRIGGER_NAME = "codefresh-trigger" - PIPELINE_NAME = "codefresh-pipeline" - } - secrets = ["CF_API_KEY"] +action "demo" { + needs = "ACTION1" + uses = "docker://alpine" + runs = ["sh", "-c", "echo $GITHUB_SHA"] } From c4d2aecbe5d7b7f1672c8fb19e2b60458061d3a3 Mon Sep 17 00:00:00 2001 From: verchol Date: Thu, 8 Aug 2019 07:47:51 +0300 Subject: [PATCH 3/5] fix --- .github/main.workflow | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/main.workflow b/.github/main.workflow index fb3036f..998d855 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -3,7 +3,6 @@ workflow "test" { resolves = ["demo"] } action "demo" { - needs = "ACTION1" uses = "docker://alpine" runs = ["sh", "-c", "echo $GITHUB_SHA"] } From 56a55aa90041eafa450849529f396af594eccbb7 Mon Sep 17 00:00:00 2001 From: Oleg Verhovsky Date: Thu, 8 Aug 2019 15:26:32 +0300 Subject: [PATCH 4/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fbba16b..addcbaa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +#commit 1 # Integrating Codefresh pipelines with Github actions Github actions are a flexible way to respond to Github events and perform one or more tasks From 58342ef946dbb6bdc54e167ea770e91d9fddab32 Mon Sep 17 00:00:00 2001 From: verchol Date: Thu, 8 Aug 2019 15:56:11 +0300 Subject: [PATCH 5/5] add yaml workflow --- .github/main.workflow.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/main.workflow.yaml diff --git a/.github/main.workflow.yaml b/.github/main.workflow.yaml new file mode 100644 index 0000000..b1f69ef --- /dev/null +++ b/.github/main.workflow.yaml @@ -0,0 +1,15 @@ +version: 1.0 +on: + push: + branches: + - master + +jobs: + build: + actions: + - name: 'Hello World!' + uses: actions/helloworld@master + with: + greeting: 'Hello' + id: hello-world + - run: echo "The action ran at ${{ actions.hello-world.outputs.time }}" \ No newline at end of file