2021-01-10 15:59:11 +00:00
|
|
|
name: 'Repo File Sync Action'
|
2021-01-08 20:47:49 +00:00
|
|
|
description: 'GitHub Action to Sync Files like Workflows Between Repositories.'
|
|
|
|
author: 'BetaHuhn'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
GH_PAT:
|
|
|
|
description: |
|
|
|
|
GitHub Personal Access Token to use to get repos and write secrets
|
|
|
|
required: false
|
2021-08-30 12:36:35 +00:00
|
|
|
GH_INSTALLATION_TOKEN:
|
|
|
|
description: |
|
|
|
|
GitHub App Installation Token to used to access repos
|
|
|
|
required: false
|
2021-01-08 20:47:49 +00:00
|
|
|
CONFIG_PATH:
|
|
|
|
description: |
|
|
|
|
The path for the sync configuration file
|
|
|
|
required: false
|
|
|
|
PR_LABELS:
|
|
|
|
description: |
|
2021-01-08 21:38:09 +00:00
|
|
|
Labels which will be added to the pull request. Defaults to sync. Set to false to turn off
|
2021-01-08 20:47:49 +00:00
|
|
|
required: false
|
2021-08-11 20:51:41 +00:00
|
|
|
PR_BODY:
|
|
|
|
description: |
|
|
|
|
Additional content to add in the PR description. Defaults to ''
|
|
|
|
required: false
|
2021-01-08 20:47:49 +00:00
|
|
|
ASSIGNEES:
|
|
|
|
description: |
|
2022-02-08 14:02:33 +00:00
|
|
|
Users to assign to the pull request. Defaults to none
|
|
|
|
required: false
|
|
|
|
REVIEWERS:
|
|
|
|
description: |
|
|
|
|
Users to request a review of the pull request from. Defaults to none
|
|
|
|
required: false
|
|
|
|
TEAM_REVIEWERS:
|
|
|
|
description: |
|
|
|
|
Teams to request a review of the pull request from. Defaults to none
|
2021-01-08 20:47:49 +00:00
|
|
|
required: false
|
|
|
|
COMMIT_PREFIX:
|
|
|
|
description: |
|
|
|
|
Prefix for commit message and pull request title. Defaults to 🔄
|
|
|
|
required: false
|
2021-05-21 19:42:15 +00:00
|
|
|
COMMIT_BODY:
|
|
|
|
description: |
|
|
|
|
Commit message body. Will be appended to commit message, separated by two line returns. Defaults to ''
|
|
|
|
required: false
|
2021-01-08 20:47:49 +00:00
|
|
|
COMMIT_EACH_FILE:
|
|
|
|
description: |
|
|
|
|
Commit each file seperately. Defaults to true
|
|
|
|
required: false
|
|
|
|
GIT_EMAIL:
|
|
|
|
description: |
|
|
|
|
The e-mail address used to commit the synced files. Defaults to the email of the GitHub PAT
|
|
|
|
required: false
|
|
|
|
GIT_USERNAME:
|
|
|
|
description: |
|
|
|
|
The username used to commit the synced files. Defaults to the username of the GitHub PAT
|
|
|
|
required: false
|
|
|
|
TMP_DIR:
|
|
|
|
description: |
|
|
|
|
The working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}`
|
|
|
|
required: false
|
|
|
|
DRY_RUN:
|
2021-03-07 18:28:45 +00:00
|
|
|
description: |
|
|
|
|
Run everything except for nothing will be updated. Defaults to false
|
|
|
|
required: false
|
|
|
|
SKIP_CLEANUP:
|
|
|
|
description: |
|
|
|
|
Skip removing the temporary directory (useful for debugging). Defaults to false
|
2021-01-08 20:47:49 +00:00
|
|
|
required: false
|
2021-03-07 21:26:30 +00:00
|
|
|
OVERWRITE_EXISTING_PR:
|
|
|
|
description: |
|
|
|
|
Overwrite any existing Sync PR with the new changes. Defaults to true
|
|
|
|
required: false
|
2021-09-04 13:17:51 +00:00
|
|
|
ORIGINAL_MESSAGE:
|
|
|
|
description: |
|
|
|
|
Re-use the original commit message for commits. Works only if the action is triggered by pushing one commit. Defaults to false
|
|
|
|
required: false
|
2021-09-27 14:21:13 +00:00
|
|
|
COMMIT_AS_PR_TITLE:
|
|
|
|
description: |
|
|
|
|
Re-use the commit message as PR title. Works only if ORIGINAL_MESSAGE is on and PR has one commit. Defaults to false
|
|
|
|
required: false
|
2021-03-18 16:33:52 +00:00
|
|
|
SKIP_PR:
|
|
|
|
description: |
|
|
|
|
Skips creating a Pull Request and pushes directly to the default branch. Defaults to false
|
|
|
|
required: false
|
2021-04-30 08:38:52 +00:00
|
|
|
BRANCH_PREFIX:
|
|
|
|
description: |
|
|
|
|
Specify a different prefix for the new branch in the target repo. Defaults to repo-sync/SOURCE_REPO_NAME
|
|
|
|
required: false
|
2021-12-11 13:02:57 +00:00
|
|
|
FORK:
|
|
|
|
description: |
|
|
|
|
Specify the user account that will be used in a fork and pull-request workflow. Defaults
|
|
|
|
false.
|
|
|
|
required: false
|
2021-01-08 20:47:49 +00:00
|
|
|
|
2021-10-16 15:04:01 +00:00
|
|
|
outputs:
|
|
|
|
pull_request_urls:
|
|
|
|
description: 'The URLs to the created Pull Requests as an array'
|
|
|
|
|
2021-01-08 20:47:49 +00:00
|
|
|
runs:
|
2021-01-08 22:38:47 +00:00
|
|
|
using: 'node12'
|
2021-01-08 20:47:49 +00:00
|
|
|
main: 'dist/index.js'
|
|
|
|
|
|
|
|
branding:
|
2021-01-10 16:13:26 +00:00
|
|
|
icon: 'git-pull-request'
|
2021-01-08 20:47:49 +00:00
|
|
|
color: 'gray-dark'
|