Skip to content

Commit

Permalink
.github: add sync workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <[email protected]>
  • Loading branch information
pierre committed Jan 24, 2022
1 parent e281351 commit 5e267bf
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: sync

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: work-for-release-0.23.x
ssh-key: ${{ secrets.CREATE_PULL_REQUEST_SSH_KEY }}
- name: Setup git user
env:
BUILD_USER: ${{ secrets.BUILD_USER }}
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Kill Bill core team"
git config --global url."https://${BUILD_USER}:${BUILD_TOKEN}@github.com/".insteadOf "[email protected]:"
- name: Merge master branch
run: |
git merge origin/master
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
branch: work-for-release-0.23.x-promotion
title: 'Sync master into work-for-release-0.23.x'
body: 'Merge latest master into work-for-release-0.23.x'

0 comments on commit 5e267bf

Please sign in to comment.