Update workflows
This commit is contained in:
parent
673922cfd2
commit
8c86d0f83f
|
@ -4,13 +4,13 @@ on:
|
||||||
types: [create-pull-request-multi]
|
types: [create-pull-request-multi]
|
||||||
jobs:
|
jobs:
|
||||||
createPullRequest:
|
createPullRequest:
|
||||||
name: Testing on ${{ matrix.platform }}
|
name: CPR on ${{ matrix.platform }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Create report file
|
- name: Create report file
|
||||||
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
||||||
run: date +%s > report.txt
|
run: date +%s > report.txt
|
||||||
|
@ -23,8 +23,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Add report file
|
commit-message: Add report file
|
||||||
author-email: peter-evans@users.noreply.github.com
|
committer: Peter Evans <peter-evans@users.noreply.github.com>
|
||||||
author-name: Peter Evans
|
|
||||||
title: '[Example] Add report file'
|
title: '[Example] Add report file'
|
||||||
body: |
|
body: |
|
||||||
New report
|
New report
|
||||||
|
|
6
.github/workflows/create-pull-request.yml
vendored
6
.github/workflows/create-pull-request.yml
vendored
|
@ -6,7 +6,7 @@ jobs:
|
||||||
createPullRequest:
|
createPullRequest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Create report file
|
- name: Create report file
|
||||||
run: date +%s > report.txt
|
run: date +%s > report.txt
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
|
@ -15,8 +15,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Add report file
|
commit-message: Add report file
|
||||||
author-email: peter-evans@users.noreply.github.com
|
committer: Peter Evans <peter-evans@users.noreply.github.com>
|
||||||
author-name: Peter Evans
|
|
||||||
title: '[Example] Add report file'
|
title: '[Example] Add report file'
|
||||||
body: |
|
body: |
|
||||||
New report
|
New report
|
||||||
|
@ -31,7 +30,6 @@ jobs:
|
||||||
project: Example Project
|
project: Example Project
|
||||||
project-column: To do
|
project-column: To do
|
||||||
branch: example-patches
|
branch: example-patches
|
||||||
branch-suffix: short-commit-hash
|
|
||||||
- name: Check outputs
|
- name: Check outputs
|
||||||
run: |
|
run: |
|
||||||
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
||||||
|
|
Loading…
Reference in a new issue