Skip to content

Commit

Permalink
Merge pull request #4 from consumet/main
Browse files Browse the repository at this point in the history
feat(gogoanime): get direct download links from download url (consumet#598)
  • Loading branch information
VISHWAJ33T committed May 15, 2024
1 parent 31ad982 commit e2fb569
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/Sync with Upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Sync with Upstream

on:
schedule:
- cron: '0 8 * * *' # Run every day at 8 AM UTC

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set Git identity
run: |
git config --global user.name "VISHWAJ33T"
git config --global user.email "[email protected]"
- name: Add upstream remote
run: |
if ! git remote | grep -q '^upstream$'; then
git remote add upstream https://github.com/consumet/api.consumet.org
fi
- name: Fetch upstream changes
run: |
git fetch upstream
- name: Rebase changes
run: |
if ! git rebase upstream/main; then
echo "Rebase failed, resolving conflicts..."
if ! git rebase --abort; then
echo "Error: Rebase abort failed"
exit 1
fi
exit 1
fi
- name: Push changes
run: |
if ! git push origin HEAD --force-with-lease; then
echo "Push failed, force push might be required"
exit 1
fi

0 comments on commit e2fb569

Please sign in to comment.