GitHub Action to fetch upstream on fork. This creates PR when changes detected.
Name | Description | Required | Default |
---|---|---|---|
upstream-owner | The owner of the upstream repository. If a fork source is detected, it defaults to that. Otherwise, an error occurs if not set. | No | Fork source or error |
upstream-repo | The name of the upstream repository. If a fork source is detected, it defaults to that. Otherwise, an error occurs if not set. | No | Fork source or error |
head | The branch in the upstream repository to merge from (head). | Yes | N/A |
base | The branch in the current repository to merge into (base). | Yes | N/A |
github-token | GitHub token for authentication. | No | ${github.token} |
Name | Description |
---|---|
pr-url | The URL of the created Pull Request. |
sequenceDiagram
participant User
participant GitHubAction
participant UpstreamRepo
participant Logger
User->>GitHubAction: Trigger Sync Action
GitHubAction->>Logger: Log Start
GitHubAction->>UpstreamRepo: Fetch Changes
alt Changes Found
GitHubAction->>GitHubAction: Create Pull Request
GitHubAction->>Logger: Log Success
else No Changes
GitHubAction->>Logger: Log No Changes
end
Bot strategy: https://github.com/wei/pull
fork-sync: https://github.com/tgymnich/fork-sync?tab=readme-ov-file
Fork-Sync-With-Upstream-action: https://github.com/aormsby/Fork-Sync-With-Upstream-action