Update workflows
This commit is contained in:
parent
5692e041c6
commit
d469aaf0ef
33
.github/workflows/create-pull-request-multi.yml
vendored
33
.github/workflows/create-pull-request-multi.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: create-pull-request workflow
|
name: Create Pull Request All Platforms
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [create-pull-request-multi]
|
types: [create-pull-request-multi]
|
||||||
|
@ -18,24 +18,27 @@ jobs:
|
||||||
if: matrix.platform == 'windows-latest'
|
if: matrix.platform == 'windows-latest'
|
||||||
run: echo %DATE% %TIME% > report.txt
|
run: echo %DATE% %TIME% > report.txt
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@multi-platform-release
|
id: cpr
|
||||||
env:
|
uses: ./
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
with:
|
||||||
COMMIT_MESSAGE: Add report file
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COMMIT_AUTHOR_EMAIL: peter-evans@users.noreply.github.com
|
commit-message: Add report file
|
||||||
COMMIT_AUTHOR_NAME: Peter Evans
|
author-email: peter-evans@users.noreply.github.com
|
||||||
PULL_REQUEST_TITLE: '[Example] Add report file'
|
author-name: Peter Evans
|
||||||
PULL_REQUEST_BODY: |
|
title: '[Example] Add report file'
|
||||||
|
body: |
|
||||||
New report
|
New report
|
||||||
- Contains *today's* date
|
- Contains *today's* date
|
||||||
- Auto-generated by [create-pull-request][1]
|
- Auto-generated by [create-pull-request][1]
|
||||||
|
|
||||||
[1]: https://github.com/peter-evans/create-pull-request
|
[1]: https://github.com/peter-evans/create-pull-request
|
||||||
PULL_REQUEST_LABELS: report, automated pr
|
labels: report, automated pr
|
||||||
PULL_REQUEST_ASSIGNEES: peter-evans
|
assignees: peter-evans
|
||||||
PULL_REQUEST_REVIEWERS: peter-evans
|
reviewers: peter-evans
|
||||||
PULL_REQUEST_MILESTONE: 1
|
milestone: 1
|
||||||
PULL_REQUEST_BRANCH: example-patches
|
branch: example-patches
|
||||||
BRANCH_SUFFIX: 'random'
|
branch-suffix: random
|
||||||
- name: Check output environment variable
|
- name: Check output environment variable
|
||||||
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
||||||
|
- name: Check step output
|
||||||
|
run: echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"
|
||||||
|
|
31
.github/workflows/create-pull-request.yml
vendored
31
.github/workflows/create-pull-request.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: create-pull-request workflow
|
name: Create Pull Request
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [create-pull-request]
|
types: [create-pull-request]
|
||||||
|
@ -10,24 +10,27 @@ jobs:
|
||||||
- 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
|
||||||
|
id: cpr
|
||||||
uses: ./
|
uses: ./
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COMMIT_MESSAGE: Add report file
|
commit-message: Add report file
|
||||||
COMMIT_AUTHOR_EMAIL: peter-evans@users.noreply.github.com
|
author-email: peter-evans@users.noreply.github.com
|
||||||
COMMIT_AUTHOR_NAME: Peter Evans
|
author-name: Peter Evans
|
||||||
PULL_REQUEST_TITLE: '[Example] Add report file'
|
title: '[Example] Add report file'
|
||||||
PULL_REQUEST_BODY: |
|
body: |
|
||||||
New report
|
New report
|
||||||
- Contains *today's* date
|
- Contains *today's* date
|
||||||
- Auto-generated by [create-pull-request][1]
|
- Auto-generated by [create-pull-request][1]
|
||||||
|
|
||||||
[1]: https://github.com/peter-evans/create-pull-request
|
[1]: https://github.com/peter-evans/create-pull-request
|
||||||
PULL_REQUEST_LABELS: report, automated pr
|
labels: report, automated pr
|
||||||
PULL_REQUEST_ASSIGNEES: peter-evans
|
assignees: peter-evans
|
||||||
PULL_REQUEST_REVIEWERS: peter-evans
|
reviewers: peter-evans
|
||||||
PULL_REQUEST_MILESTONE: 1
|
milestone: 1
|
||||||
PULL_REQUEST_BRANCH: example-patches
|
branch: example-patches
|
||||||
BRANCH_SUFFIX: short-commit-hash
|
branch-suffix: short-commit-hash
|
||||||
- name: Check output environment variable
|
- name: Check output environment variable
|
||||||
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
|
||||||
|
- name: Check step output
|
||||||
|
run: echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"
|
||||||
|
|
Loading…
Reference in a new issue