mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-03 09:25:19 +00:00
auto merge code to pr branch
This commit is contained in:
parent
cfc34faf4b
commit
376072171d
27
.github/workflows/merge_master_to_pr_branch.yml
vendored
Normal file
27
.github/workflows/merge_master_to_pr_branch.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Merge master into pull request
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Fetch all branches
|
||||
run: git fetch --all
|
||||
|
||||
- name: Merge master into pull request
|
||||
run: |
|
||||
git checkout ${{ github.event.pull_request.head.ref }}
|
||||
git merge origin/master
|
||||
|
||||
- name: Push changes
|
||||
run: git push origin HEAD:${{ github.event.pull_request.head.ref }}
|
||||
if: success()
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user