https://github.com/fingerprintjs/sync-remote-branch
https://github.com/fingerprintjs/sync-remote-branch
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fingerprintjs/sync-remote-branch
- Owner: fingerprintjs
- License: mit
- Created: 2022-03-31T14:08:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T14:11:38.000Z (almost 4 years ago)
- Last Synced: 2025-02-16T14:11:52.066Z (11 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Actions: sync repository

## Action
* Synchronize changes from the specified repository to the current one
## Inputs
#### `source` (Required)
The URL (HTTPS protocol only; SSH isn't supported) to the repository from which updates will be applied.
The repository must be publicly available.
#### `branch` (Optional)
The name of the branch to update.
The default value is `main`.
## Example usage
```yaml
name: Update worker's repository from the public template
on:
# Add cron expression if you need to update automatically periodically
schedule:
- cron: "0 0 * * *"
# Used for a manual run from Github Actions
workflow_dispatch:
jobs:
update:
steps:
- uses: actions/checkout@v2
- name: Get updates from the public template and merge into the repository branch
uses: fingerprintjs/sync-remote-branch@v1.0.0
with:
source: https://github.com/fingerprintjs/fingerprintjs-pro-cloudflare-worker.git
branch: master
```