Update workflows
This commit is contained in:
parent
39529236f7
commit
9e25487be4
2 changed files with 30 additions and 5 deletions
28
.github/workflows/create-pull-request-multi.yml
vendored
Normal file
28
.github/workflows/create-pull-request-multi.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [create-pull-request-multi]
|
||||||
|
name: create-pull-request action testing workflow
|
||||||
|
jobs:
|
||||||
|
createPullRequest:
|
||||||
|
name: Testing on ${{ matrix.platform }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Create report file
|
||||||
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
||||||
|
run: touch report.txt
|
||||||
|
- name: Create report file (windows)
|
||||||
|
if: matrix.platform == 'windows-latest'
|
||||||
|
run: type NUL > report.txt
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@multi-platform-release
|
||||||
|
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'
|
||||||
|
BRANCH_SUFFIX: 'timestamp'
|
|
@ -1,6 +1,6 @@
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [test]
|
types: [create-pull-request]
|
||||||
name: create-pull-request action testing workflow
|
name: create-pull-request action testing workflow
|
||||||
jobs:
|
jobs:
|
||||||
createPullRequest:
|
createPullRequest:
|
||||||
|
@ -8,10 +8,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Create report file
|
- name: Create report file
|
||||||
uses: finnp/create-file-action@1.0.0
|
run: touch report.txt
|
||||||
env:
|
|
||||||
FILE_DATA: This is created to test create-pull-request action.
|
|
||||||
FILE_NAME: report.txt
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: ./
|
uses: ./
|
||||||
env:
|
env:
|
Loading…
Reference in a new issue