Skip to content

Sync With Forked Repo #415

Sync With Forked Repo

Sync With Forked Repo #415

Workflow file for this run

name: Sync With Forked Repo
on:
workflow_dispatch: # allow manual run
schedule:
- cron: '0 0 * * *' # every night
jobs:
syncing_with_forked_repo:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Set up Git
run: |
git config user.email "sarangsurve126@gmail.com"
git config user.name "sarangsurve"
git remote add upstream https://github.com/algorithm-visualizer/algorithms.git
git fetch upstream master
- name: Check for changes from upstream
run: |
if [ $(git rev-list --count HEAD..upstream/master) -gt 0 ]; then
git checkout -b update-from-upstream master
git merge --allow-unrelated-histories -X theirs upstream/master
git push origin update-from-upstream:master
fi
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy