2020-01-03 06:44:00 +01:00
|
|
|
name: Create Pull Request Example Command
|
2019-09-20 03:14:51 +02:00
|
|
|
on:
|
|
|
|
repository_dispatch:
|
2020-01-03 06:37:39 +01:00
|
|
|
types: [cpr-example-command]
|
2019-08-12 07:32:59 +02:00
|
|
|
jobs:
|
|
|
|
createPullRequest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-12-29 08:05:24 +01:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2019-09-30 11:57:49 +02:00
|
|
|
- name: Create report file
|
|
|
|
run: date +%s > report.txt
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2019-09-30 11:57:49 +02:00
|
|
|
- name: Create Pull Request
|
2019-11-09 09:59:23 +01:00
|
|
|
id: cpr
|
2019-09-30 11:57:49 +02:00
|
|
|
uses: ./
|
2019-11-09 09:59:23 +01:00
|
|
|
with:
|
|
|
|
commit-message: Add report file
|
2020-04-10 10:11:29 +02:00
|
|
|
committer: GitHub <noreply@github.com>
|
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
2019-11-09 09:59:23 +01:00
|
|
|
title: '[Example] Add report file'
|
|
|
|
body: |
|
2019-10-21 11:31:14 +02:00
|
|
|
New report
|
|
|
|
- Contains *today's* date
|
|
|
|
- Auto-generated by [create-pull-request][1]
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-pull-request
|
2019-11-09 09:59:23 +01:00
|
|
|
labels: report, automated pr
|
|
|
|
assignees: peter-evans
|
|
|
|
reviewers: peter-evans
|
|
|
|
milestone: 1
|
2020-04-04 02:47:11 +02:00
|
|
|
draft: false
|
2019-11-09 09:59:23 +01:00
|
|
|
branch: example-patches
|
2020-03-27 18:56:55 +01:00
|
|
|
request-to-parent: false
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2019-11-09 10:22:03 +01:00
|
|
|
- name: Check outputs
|
|
|
|
run: |
|
|
|
|
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
2020-05-10 11:09:48 +02:00
|
|
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2020-01-03 06:44:00 +01:00
|
|
|
- name: Add reaction
|
|
|
|
uses: peter-evans/create-or-update-comment@v1
|
|
|
|
with:
|
|
|
|
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
|
|
|
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
|
|
|
reaction-type: hooray
|