forked from simranlotey/Hacktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 830 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
name: Sync Forked Repo
env:
UPSTREAM_URL: "https://github.com/simranlotey/programs.git"
WORKFLOW_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
UPSTREAM_BRANCH: "master"
DOWNSTREAM_BRANCH: "master"
MERGE_ARGS: ""
PUSH_ARGS: ""
on:
schedule:
- cron: '55 23 * * *'
# Allows manual workflow run (must in default branch to work)
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: GitHub Sync to Upstream Repository
uses: dabreadman/[email protected]
with:
upstream_repo: ${{ env.UPSTREAM_URL }}
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
token: ${{ env.WORKFLOW_TOKEN }}
merge_args: ${{ env.MERGE_ARGS }}
push_args: ${{ env.PUSH_ARGS }}