Skip to content

Sync with Jellyfin server Repository #47

Sync with Jellyfin server Repository

Sync with Jellyfin server Repository #47

name: Sync with Jellyfin server Repository
on:
schedule:
- cron: '0 6 * * *' # Runs every hour, adjust as needed
- cron: '0 12 * * *'
- cron: '0 18 * * *'
- cron: '0 0 * * *'
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout jellyfin-server repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags
token: ${{ secrets.WORKFLOW }}
- name: Configure git
run: |
git config user.name "GitHub Action"
git config user.email "[email protected]"
- name: Add upstream remote
run: git remote add upstream https://github.com/jellyfin/jellyfin.git
- name: Fetch changes from upstream
run: git fetch upstream
- name: Merge upstream changes to master
run: |
git checkout master
git merge upstream/master
git push origin master
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW }}