Skip to content

Commit

Permalink
fetch all commits
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jul 6, 2023
1 parent 6245c92 commit bf884ea
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sync latest

on:
push:
branches: [develop]

defaults:
run:
shell: bash

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: Merge Branches
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch
git checkout develop
git pull
git checkout latest
git pull
git merge develop
# note that this shouldn't run if 'merge branches' fails, which it will happen when
# there are merge conflicts.
- name: Sync latest
if: contains(github.event.pull_request.labels.*.name, 'sync-latest')
run: |
git push

0 comments on commit bf884ea

Please sign in to comment.