Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit e8982d1

Browse files
authored
Merge pull request #36 from votca/stable_ci
CI: add create PR workflow
2 parents f645d98 + 8568ff7 commit e8982d1

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/create-pr.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Create PR
2+
on:
3+
push:
4+
branches:
5+
- stable
6+
7+
jobs:
8+
PR:
9+
name: Create
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@master
14+
with:
15+
ref: ${{ github.event.ref }}
16+
fetch-depth: 0
17+
token: ${{ secrets.VOTCA_BOT_TOKEN }}
18+
- name: Try to merge master branch
19+
run: |
20+
git config --global user.name "Votca Bot"
21+
git config --global user.email "github@votca.org"
22+
git checkout -b stable_fixes
23+
git merge origin/master || true
24+
git push origin stable_fixes
25+
- name: Create Pull Request
26+
uses: actions/github-script@0.3.0
27+
with:
28+
github-token: ${{ secrets.VOTCA_BOT_TOKEN }}
29+
script: |
30+
github.pulls.create({
31+
owner: 'votca',
32+
repo: 'xtp-tutorials',
33+
title: 'Fixes from stable',
34+
head: 'stable_fixes',
35+
base: 'master'
36+
})

0 commit comments

Comments
 (0)