create-pull-request/.github/main.workflow

25 lines
658 B
Text
Raw Normal View History

2019-07-21 06:31:41 +02:00
workflow "Action testing workflow" {
on = "push"
resolves = "Create Pull Request"
}
action "Create report file" {
uses = "finnp/create-file-action@1.0.0"
env = {
2019-07-21 06:36:09 +02:00
FILE_NAME = "report.txt"
FILE_DATA = "This is created to test create-pull-request action."
2019-07-21 06:31:41 +02:00
}
}
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)."
}
}