Sunshine/.github/workflows/auto-create-pr.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2022-08-07 23:33:19 +00:00
---
2022-07-29 21:45:02 -04:00
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
2022-12-31 22:38:46 -05:00
# This workflow creates a PR automatically when anything is merged/pushed into the `nightly` branch. The PR is created
# against the `master` (default) branch.
2022-07-29 21:45:02 -04:00
name: Auto create PR
on:
2022-08-07 23:33:19 +00:00
push:
2022-07-29 21:45:02 -04:00
branches:
- 'nightly'
jobs:
create_pr:
2022-12-10 10:27:26 -05:00
if: startsWith(github.repository, 'LizardByte/')
2022-07-29 21:45:02 -04:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: "" # should be "nightly" as it's the triggering branch
destination_branch: "master"
2022-08-07 23:33:19 +00:00
pr_title: "Pulling ${{ github.ref_name }} into master"
2022-07-29 21:45:02 -04:00
pr_template: ".github/pr_release_template.md"
pr_assignee: "${{ secrets.GH_BOT_NAME }}"
pr_draft: true
pr_allow_empty: false
github_token: ${{ secrets.GH_BOT_TOKEN }}