Skip to content

Commit

Permalink
build: use tretuna/sync-branches to sync alpha with master (#2071)
Browse files Browse the repository at this point in the history
* build: use tretuna/sync-branches to sync alpha with master

* build: use merge instead of squash on auto-merge
  • Loading branch information
adamstankiewicz authored Feb 22, 2023
1 parent 848183e commit f3c0656
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/sync-master-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Sync alpha with master
on:
push:
branches:
- master

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Create Pull Request
id: cpr
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }}
FROM_BRANCH: master
TO_BRANCH: alpha
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.requirements_bot_github_token }}
pull-request-number: ${{ steps.cpr.outputs.PULL_REQUEST_NUMBER }}

0 comments on commit f3c0656

Please sign in to comment.