mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Add workflows to create software PRs and GitHub releases (#1123)
* Add workflows to create software PR and release * Fix job names * Minor fix * Rework workflows
This commit is contained in:
committed by
GitHub
parent
c1ee9d8bc6
commit
ba79bba9d5
27
.github/workflows/create_pull_request.yml
vendored
Normal file
27
.github/workflows/create_pull_request.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Create Pull Request
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [create-pr]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||
uses: actions/github-script@v2
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.pulls.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: "${{ github.event.client_payload.PullRequestTitle }}",
|
||||
head: "${{ github.event.client_payload.ReleaseBranchName }}",
|
||||
base: "${{ github.event.client_payload.PullRequestBase }}",
|
||||
body: `${{ github.event.client_payload.PullRequestBody }}`
|
||||
});
|
||||
Reference in New Issue
Block a user