Update dev Branch #1
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: Update dev Branch | |
on: | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.DEPLOY_CI_TOKEN }} | |
- name: Setup Git User | |
run: | | |
git config user.name "GitHub Action" | |
git config user.email "[email protected]" | |
- name: Update dev Branch | |
run: | | |
git fetch --all | |
git checkout dev | |
git merge origin/dev | |
git merge origin/master --ff-only | |
git push origin dev |