Update sync-with-template.yml #2
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
name: Sync with Template | |
on: | |
push: | |
branches: | |
- 1.x | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout old repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Ensures full history is fetched | |
- name: Add template repository as remote | |
run: git remote add template [email protected]:BaristaPHP/laravel-package-template.git | |
- name: Fetch latest changes from template | |
run: git fetch template | |
- name: Merge changes from template | |
run: | | |
git merge template/master --allow-unrelated-histories | |
git push origin master |