Skip to content

mirror-and-push

mirror-and-push #515

Workflow file for this run

name: 'mirror-and-push'
on:
push:
branches:
- __mirror
schedule:
# Run everyday at 3 AM UTC
- cron: '0 3 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
mirror:
runs-on: ubuntu-latest
name: mirror
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Fetch upstream
run: |
git remote add upstream "https://github.com/jellyfin/jellyfin-vue.git"
git fetch upstream
git fetch origin
- name: Force update master branch
run: |
git checkout -b master || git checkout master
git reset --hard upstream/master
rm -rf .github
git add .github
git commit -m "remove workflows"
git push origin master --force -v
- name: Triggering Deploy
run: |
echo "Waiting for GitHub to prop"
sleep 3
curl -X POST -d '' "${{ secrets.DEPLOY_HOOK }}"