Skip to content

Automatic sync upstream repository GitHub Action.

Notifications You must be signed in to change notification settings

ikxin/sync-upstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Sync Upstream Action

简体中文

This GitHub Action synchronizes a branch of your repository with a branch from an upstream repository.

Inputs

  • github_token: GitHub token for authentication.
  • target_repository: Target repository in the format owner/repo.
  • target_branch: Branch in the target repository to sync.
  • upstream_repository: Upstream repository in the format owner/repo.
  • upstream_branch: Branch in the upstream repository to sync.

Example Usage

name: Sync Upstream

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  sync:
    runs-on: ubuntu-latest

    steps:
      - name: Sync Upstream
        uses: ikxin/sync-upstream@main
        with:
          github_token: ${{ secrets.SYNC_TOKEN }}
          target_repository: "zhcndoc/nuxt"
          target_branch: "upstream"
          upstream_repository: "nuxt/nuxt.com"
          upstream_branch: "main"

About

Automatic sync upstream repository GitHub Action.

Resources

Stars

Watchers

Forks