Automated commit from the Keep Repo Alive workflow #63
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
### | |
# | |
# 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 |