betahuhn/Repo File Sync Action
GitHub Action to Sync Files like Workflows Between Repositories.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit May 5, 2024
- License
- MIT
Pinned Snippet
uses: betahuhn/repo-file-sync-action@8b92be3375cf1d1b0cd579af488a9255572e4619 # v1.21.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| GH_PAT | GitHub Personal Access Token to use to get repos and write secrets | no | — |
| GH_INSTALLATION_TOKEN | GitHub App Installation Token to used to access repos | no | — |
| CONFIG_PATH | The path for the sync configuration file | no | — |
| IS_FINE_GRAINED | Label GH_PAT as a fine grained token | no | — |
| PR_LABELS | Labels which will be added to the pull request. Defaults to sync. Set to false to turn off | no | — |
| PR_BODY | Additional content to add in the PR description. Defaults to '' | no | — |
| ASSIGNEES | Users to assign to the pull request. Defaults to none | no | — |
| REVIEWERS | Users to request a review of the pull request from. Defaults to none | no | — |
| TEAM_REVIEWERS | Teams to request a review of the pull request from. Defaults to none | no | — |
| COMMIT_PREFIX | Prefix for commit message and pull request title. Defaults to 🔄 | no | — |
| COMMIT_BODY | Commit message body. Will be appended to commit message, separated by two line returns. Defaults to '' | no | — |
| COMMIT_EACH_FILE | Commit each file seperately. Defaults to true | no | — |
| GIT_EMAIL | The e-mail address used to commit the synced files. Defaults to the email of the GitHub PAT | no | — |
| GIT_USERNAME | The username used to commit the synced files. Defaults to the username of the GitHub PAT | no | — |
| TMP_DIR | The working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}` | no | — |
| DRY_RUN | Run everything except for nothing will be updated. Defaults to false | no | — |
| SKIP_CLEANUP | Skip removing the temporary directory (useful for debugging). Defaults to false | no | — |
| OVERWRITE_EXISTING_PR | Overwrite any existing Sync PR with the new changes. Defaults to true | no | — |
| ORIGINAL_MESSAGE | Re-use the original commit message for commits. Works only if the action is triggered by pushing one commit. Defaults to false | no | — |
| COMMIT_AS_PR_TITLE | Re-use the commit message as PR title. Works only if ORIGINAL_MESSAGE is on and PR has one commit. Defaults to false | no | — |
| SKIP_PR | Skips creating a Pull Request and pushes directly to the default branch. Defaults to false | no | — |
| BRANCH_PREFIX | Specify a different prefix for the new branch in the target repo. Defaults to repo-sync/SOURCE_REPO_NAME | no | — |
| FORK | Specify the user account that will be used in a fork and pull-request workflow. Defaults false. | no | — |
Outputs
| name | description |
|---|---|
| pull_request_urls | The URLs to the created Pull Requests as an array |