2019-10-14 06:50:52 +00:00
|
|
|
name: create-pull-request workflow
|
2019-09-25 00:25:52 +00:00
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
types: [create-pull-request-multi]
|
|
|
|
jobs:
|
|
|
|
createPullRequest:
|
|
|
|
name: Testing on ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
2019-09-30 09:57:49 +00:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Create report file
|
|
|
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
|
|
|
run: date +%s > report.txt
|
|
|
|
- name: Create report file (windows)
|
|
|
|
if: matrix.platform == 'windows-latest'
|
|
|
|
run: echo %DATE% %TIME% > 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
|
2019-10-06 05:52:15 +00:00
|
|
|
COMMIT_AUTHOR_EMAIL: peter-evans@users.noreply.github.com
|
|
|
|
COMMIT_AUTHOR_NAME: Peter Evans
|
2019-10-05 00:22:35 +00:00
|
|
|
PULL_REQUEST_TITLE: '[Example] Add report file'
|
2019-10-21 09:31:14 +00:00
|
|
|
PULL_REQUEST_BODY: |
|
|
|
|
New report
|
|
|
|
- Contains *today's* date
|
|
|
|
- Auto-generated by [create-pull-request][1]
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-pull-request
|
2019-09-30 09:57:49 +00:00
|
|
|
PULL_REQUEST_LABELS: report, automated pr
|
|
|
|
PULL_REQUEST_ASSIGNEES: peter-evans
|
|
|
|
PULL_REQUEST_REVIEWERS: peter-evans
|
|
|
|
PULL_REQUEST_MILESTONE: 1
|
|
|
|
PULL_REQUEST_BRANCH: example-patches
|
|
|
|
BRANCH_SUFFIX: 'random'
|
|
|
|
- name: Check output environment variable
|
|
|
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
|
|
|
run: echo "Pull Request Number - $PULL_REQUEST_NUMBER"
|
|
|
|
- name: Check output environment variable (windows)
|
|
|
|
if: matrix.platform == 'windows-latest'
|
|
|
|
run: echo Pull Request Number - %PULL_REQUEST_NUMBER%
|