Convert main.workflow to v2 yml
This commit is contained in:
parent
9a709f0173
commit
0f3781327e
2 changed files with 20 additions and 24 deletions
24
.github/main.workflow
vendored
24
.github/main.workflow
vendored
|
@ -1,24 +0,0 @@
|
|||
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.txt"
|
||||
FILE_DATA = "This 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)."
|
||||
}
|
||||
}
|
20
.github/workflows/push.yml
vendored
Normal file
20
.github/workflows/push.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
on: push
|
||||
name: create-pull-request action testing workflow
|
||||
jobs:
|
||||
createPullRequest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Create report file
|
||||
uses: finnp/create-file-action@1.0.0
|
||||
env:
|
||||
FILE_DATA: This is created to test create-pull-request action.
|
||||
FILE_NAME: report.txt
|
||||
- name: Create Pull Request
|
||||
uses: ./
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COMMIT_MESSAGE: Add report file
|
||||
PULL_REQUEST_BODY: This PR is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request).
|
||||
PULL_REQUEST_BRANCH: test-patches
|
||||
PULL_REQUEST_TITLE: '[Test] Add report file'
|
Loading…
Reference in a new issue