https://github.com/chaotictrials/action-sync-workflows
Sync workflow files to repositories with a specified topic.
https://github.com/chaotictrials/action-sync-workflows
action actions
Last synced: 11 months ago
JSON representation
Sync workflow files to repositories with a specified topic.
- Host: GitHub
- URL: https://github.com/chaotictrials/action-sync-workflows
- Owner: ChaoticTrials
- License: mit
- Created: 2024-07-14T13:57:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-18T16:48:23.000Z (about 1 year ago)
- Last Synced: 2025-05-30T22:46:05.496Z (about 1 year ago)
- Topics: action, actions
- Language: TypeScript
- Homepage:
- Size: 416 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-sync-workflows
This GitHub Action syncs workflow files to repositories with a specified topic, either for a user or an organization.
## Usage
This action fetches repositories with a specified topic from a user or organization, and then syncs workflow files from
a specified directory to those repositories. If the file already exists and matches the content, it will be skipped.
### Inputs
| Name | Description | Required | Default |
| :---------------: | :--------------------------------------------------------: | :-----------------: | :-----: |
| `user` \|\| `org` | GitHub username or organization to fetch repositories from | Exactly one of them | |
| `topic` | The topic to filter repositories by | Yes | |
| `directory` | The directory containing workflow files to sync | Yes | |
| `prefix` | Optional commit message prefix | No | |
| `token` | GitHub token for authentication | Yes | |
### Example Workflow
```yaml
name: Sync Workflow Files
on: [push]
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Sync Workflow Files
uses: ChaoticTrials/action-sync-workflows@v1
with:
user: 'your-username'
org: 'your-org'
topic: 'your-topic'
directory: '.github/workflows'
prefix: '[Sync]'
token: ${{ secrets.GITHUB_TOKEN }}
```