Skip to content

ikxin/sync-upstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published