Skip to content

Commit 5e267bf

Browse files
committed
.github: add sync workflow
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
1 parent e281351 commit 5e267bf

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/sync.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: sync
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
ref: work-for-release-0.23.x
16+
ssh-key: ${{ secrets.CREATE_PULL_REQUEST_SSH_KEY }}
17+
- name: Setup git user
18+
env:
19+
BUILD_USER: ${{ secrets.BUILD_USER }}
20+
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
21+
run: |
22+
git config --global user.email "contact@killbill.io"
23+
git config --global user.name "Kill Bill core team"
24+
git config --global url."https://${BUILD_USER}:${BUILD_TOKEN}@github.com/".insteadOf "git@github.com:"
25+
- name: Merge master branch
26+
run: |
27+
git merge origin/master
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v3
30+
with:
31+
branch: work-for-release-0.23.x-promotion
32+
title: 'Sync master into work-for-release-0.23.x'
33+
body: 'Merge latest master into work-for-release-0.23.x'

0 commit comments

Comments
 (0)