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:
|
2022-03-23 06:22:01 +01:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2020-07-19 09:20:13 +02:00
|
|
|
- name: Make changes to pull request
|
2019-09-30 11:57:49 +02:00
|
|
|
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:
|
2020-07-19 09:20:13 +02:00
|
|
|
commit-message: Update report
|
2020-04-10 10:11:29 +02:00
|
|
|
committer: GitHub <noreply@github.com>
|
|
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
2020-07-31 09:59:26 +02:00
|
|
|
signoff: false
|
2020-07-19 09:20:13 +02:00
|
|
|
title: '[Example] Update report'
|
2019-11-09 09:59:23 +01:00
|
|
|
body: |
|
2020-07-19 09:20:13 +02:00
|
|
|
Update report
|
|
|
|
- Updated with *today's* date
|
2019-10-21 11:31:14 +02:00
|
|
|
- Auto-generated by [create-pull-request][1]
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-pull-request
|
2020-07-19 09:20:13 +02:00
|
|
|
labels: |
|
|
|
|
report
|
|
|
|
automated pr
|
2019-11-09 09:59:23 +01:00
|
|
|
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-09-06 03:21:35 +02:00
|
|
|
delete-branch: true
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2020-07-16 12:42:19 +02:00
|
|
|
- name: Check output
|
2019-11-09 10:22:03 +01:00
|
|
|
run: |
|
2020-05-10 11:09:48 +02:00
|
|
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
2020-09-17 03:41:24 +02:00
|
|
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
2020-05-10 12:02:35 +02:00
|
|
|
|
2020-01-03 06:44:00 +01:00
|
|
|
- name: Add reaction
|
2022-03-23 06:29:17 +01:00
|
|
|
uses: peter-evans/create-or-update-comment@v2
|
2020-01-03 06:44:00 +01:00
|
|
|
with:
|
|
|
|
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
|
|
|
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
|
|
|
reaction-type: hooray
|