From abaaf77b6e03681f923ff38845a8202a9c3335bf Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sun, 21 Jul 2019 13:31:41 +0900 Subject: [PATCH] Update main.workflow --- .github/main.workflow | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..b81dd5d --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,24 @@ +workflow "Action testing workflow" { + on = "push" + resolves = "Create Pull Request" +} + +action "Create report file" { + uses = "finnp/create-file-action@1.0.0" + env = { + FILE_NAME = "report.md" + FILE_DATA = "#Report\nThis is created to test create-pull-request action." + } +} + +action "Create Pull Request" { + needs = "Create report file" + uses = "./" + secrets = ["GITHUB_TOKEN"] + env = { + PULL_REQUEST_BRANCH = "test-patches" + COMMIT_MESSAGE = "Add report file" + PULL_REQUEST_TITLE = "[Test] Add report file" + PULL_REQUEST_BODY = "This PR is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)." + } +}