Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 73cbecb

Browse files
Create auto-sync.yml
1 parent 0e08ae1 commit 73cbecb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎.github/workflows/auto-sync.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auto Sync with Main Repo
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Target Repository
14+
uses: actions/checkout@v2
15+
with:
16+
repository: gihanrangana/quicksnip
17+
ref: main
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Sync with Main Repository
21+
run: |
22+
git remote add upstream https://github.com/gihanrangana/quicksnip.git
23+
git fetch upstream
24+
git checkout main
25+
git merge upstream/main
26+
git push origin main

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /