-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (34 loc) · 1.03 KB
/
sync-branches.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
###
#
# This workflow file is deployed into this repository via the "Sync Organization Files" workflow
#
# Direct edits to this file are at risk of being overwritten by the next sync. All edits should be made
# to the source file.
#
# @see Sync workflow {@link https://github.com/gocodebox/.github/actions/workflows/workflow-sync.yml}
# @see Workflow template {@link https://github.com/gocodebox/.github/blob/trunk/.github/workflow-templates/sync-branches.yml}
#
###
name: Sync Branches
on:
push:
branches:
- trunk
workflow_dispatch:
jobs:
sync:
name: trunk -> dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ORG_WORKFLOWS }}
fetch-depth: 0
- name: Perform sync
run: |
git config --global user.name "branch-sync[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout dev
git pull origin trunk --no-ff
git status
git push origin dev