2019-10-14 08:50:52 +02:00
|
|
|
name: create-pull-request workflow
|
2019-09-20 03:14:51 +02:00
|
|
|
on:
|
|
|
|
repository_dispatch:
|
2019-09-25 02:25:52 +02:00
|
|
|
types: [create-pull-request]
|
2019-08-12 07:32:59 +02:00
|
|
|
jobs:
|
|
|
|
createPullRequest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-09-30 11:57:49 +02:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Create report file
|
|
|
|
run: date +%s > report.txt
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: ./
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
COMMIT_MESSAGE: Add report file
|
2019-10-06 07:52:15 +02:00
|
|
|
COMMIT_AUTHOR_EMAIL: peter-evans@users.noreply.github.com
|
|
|
|
COMMIT_AUTHOR_NAME: Peter Evans
|
2019-10-05 02:22:35 +02:00
|
|
|
PULL_REQUEST_TITLE: '[Example] Add report file'
|
2019-10-21 11:31:14 +02: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 11:57:49 +02: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: short-commit-hash
|
|
|
|
- name: Check output environment variable
|
2019-11-04 03:01:00 +01:00
|
|
|
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|