Merge pull request #3948 from signalco-io/next #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: '[Global] Sync `next` Branch' | |
# This workflow attempts to merge updates from `main` into the long-standing next branch. | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: merge_main | |
jobs: | |
merge-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- name: Create Pull Request | |
uses: repo-sync/pull-request@v2 | |
id: cpr | |
with: | |
destination_branch: 'next' | |
pr_title: '[Automated] Merge `main` into target `next`' | |
pr_allow_empty: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable Pull Request Automerge | |
if: steps.cpr.outputs.pr_created == 'true' | |
run: gh pr merge --merge --auto "${{ steps.cpr.outputs.pr_number }}" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |