Sync Forked Repo #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} | |