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 Sep 16, 2024
1 parent e56e7ac commit 6b7affd
Show file tree
Hide file tree
Showing 2 changed files with 77 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
32 changes: 32 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: git remote add upstream https://github.com/consumet/api.consumet.org
env:
UPSTREAM_REPO_URL: https://github.com/consumet/api.consumet.org

- name: Fetch upstream changes
run: git fetch upstream

- name: Rebase changes
run: git rebase upstream/main

- name: Push changes
run: |
git push origin HEAD --force-with-lease

0 comments on commit 6b7affd

Please sign in to comment.