diff --git a/.codefresh/codefresh.yaml b/.codefresh/codefresh.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.github/main.workflow b/.github/main.workflow index 065e5a8..998d855 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,13 +1,8 @@ -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" { + uses = "docker://alpine" + runs = ["sh", "-c", "echo $GITHUB_SHA"] } 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 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