github-action-push-to-anoth.../action.yml

70 lines
2.1 KiB
YAML
Raw Normal View History

name: Push directory to another repository
2021-08-29 16:07:37 -06:00
description: >-
Useful to push files to another repository to be used, for example, via github
pages
2020-03-29 08:44:47 -06:00
inputs:
2021-08-29 06:24:21 -06:00
source-before-directory:
2021-08-29 16:07:37 -06:00
description: Source before directory from the origin directory
2021-08-29 06:24:21 -06:00
required: false
2020-03-29 08:44:47 -06:00
source-directory:
2021-08-29 16:07:37 -06:00
description: Source directory from the origin directory
2020-03-29 08:44:47 -06:00
required: true
destination-github-username:
2021-08-29 16:07:37 -06:00
description: Name of the destination username/organization
2020-03-29 08:44:47 -06:00
required: true
destination-repository-name:
2021-08-29 16:07:37 -06:00
description: Destination repository
2020-03-29 08:44:47 -06:00
required: true
user-email:
2021-08-29 16:07:37 -06:00
description: Email for the git commit
required: true
2021-06-24 01:00:26 -06:00
github-server:
description: 'Github server'
default: 'github.com'
required: false
user-name:
2021-08-29 16:07:37 -06:00
description: >-
[Optional] Name for the git commit. Defaults to the destination
username/organization name
required: false
default: ''
destination-repository-username:
description: '[Optional] Username/organization for the destination repository'
required: false
default: ''
target-branch:
2021-08-29 16:07:37 -06:00
description: >-
[Optional] set target branch name for the destination repository. Defaults
2021-12-14 16:41:43 -07:00
to "main"
2021-08-29 16:07:37 -06:00
default: main
required: false
2020-11-04 09:26:43 -07:00
commit-message:
2021-08-29 16:07:37 -06:00
description: >-
[Optional] commit message for the output repository. ORIGIN_COMMIT is
replaced by the URL@commit in the origin repo
default: Update from ORIGIN_COMMIT
2020-11-04 09:23:02 -07:00
required: false
target-directory:
description: '[Optional] The directory to wipe and replace in the target repository'
default: ''
required: false
2021-06-24 00:57:24 -06:00
2020-03-29 08:44:47 -06:00
runs:
2021-08-29 16:07:37 -06:00
using: docker
image: Dockerfile
2020-03-29 08:44:47 -06:00
args:
2021-08-29 16:07:37 -06:00
- '${{ inputs.source-before-directory }}'
- '${{ inputs.source-directory }}'
- '${{ inputs.destination-github-username }}'
- '${{ inputs.destination-repository-name }}'
2021-10-25 16:41:08 -06:00
- '${{ inputs.github-server }}'
2021-08-29 16:07:37 -06:00
- '${{ inputs.user-email }}'
- '${{ inputs.user-name }}'
- '${{ inputs.destination-repository-username }}'
- '${{ inputs.target-branch }}'
- '${{ inputs.commit-message }}'
- '${{ inputs.target-directory }}'
2020-03-29 13:30:17 -06:00
branding:
2021-08-29 16:07:37 -06:00
icon: git-commit
color: green