Sync Fork with Upstream (redeagle) #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 Fork with Upstream (redeagle) | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */6 * * *' # Runs every 6 hours (adjust as needed) | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Sync with Upstream | |
run: | | |
git remote add upstream https://github.com/codenim34/QuizMasterApi.git | |
git fetch upstream | |
git checkout redeagle | |
git merge upstream/redeagle | |
git push origin redeagle | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |