Update action.yml Script: Cleanup

This commit is contained in:
Eliminater74 2021-08-29 18:07:37 -04:00
parent ed4074dd02
commit 38d751da52
No known key found for this signature in database
GPG Key ID: 2DB13AFD9AF1A53C

View File

@ -1,23 +1,27 @@
name: 'Push directory to another repository directory' name: Push directory to another repository directory
description: 'Useful to push files to another repository to be used, for example, via github pages' description: >-
Useful to push files to another repository to be used, for example, via github
pages
inputs: inputs:
source-before-directory: source-before-directory:
description: 'Source before directory from the origin directory' description: Source before directory from the origin directory
required: false required: false
source-directory: source-directory:
description: 'Source directory from the origin directory' description: Source directory from the origin directory
required: true required: true
destination-github-username: destination-github-username:
description: 'Name of the destination username/organization' description: Name of the destination username/organization
required: true required: true
destination-repository-name: destination-repository-name:
description: 'Destination repository' description: Destination repository
required: true required: true
user-email: user-email:
description: 'Email for the git commit' description: Email for the git commit
required: true required: true
user-name: user-name:
description: '[Optional] Name for the git commit. Defaults to the destination username/organization name' description: >-
[Optional] Name for the git commit. Defaults to the destination
username/organization name
required: false required: false
default: '' default: ''
destination-repository-username: destination-repository-username:
@ -25,31 +29,35 @@ inputs:
required: false required: false
default: '' default: ''
target-branch: target-branch:
description: '[Optional] set target branch name for the destination repository. Defaults to "main" for historical reasons' description: >-
default: 'main' [Optional] set target branch name for the destination repository. Defaults
to "main" for historical reasons
default: main
required: false required: false
commit-message: commit-message:
description: '[Optional] commit message for the output repository. ORIGIN_COMMIT is replaced by the URL@commit in the origin repo' description: >-
default: 'Update from ORIGIN_COMMIT' [Optional] commit message for the output repository. ORIGIN_COMMIT is
replaced by the URL@commit in the origin repo
default: Update from ORIGIN_COMMIT
required: false required: false
target-directory: target-directory:
description: '[Optional] The directory to wipe and replace in the target repository' description: '[Optional] The directory to wipe and replace in the target repository'
default: '.' default: .
required: false required: false
runs: runs:
using: 'docker' using: docker
image: 'Dockerfile' image: Dockerfile
args: args:
- ${{ inputs.source-before-directory }} - '${{ inputs.source-before-directory }}'
- ${{ inputs.source-directory }} - '${{ inputs.source-directory }}'
- ${{ inputs.destination-github-username }} - '${{ inputs.destination-github-username }}'
- ${{ inputs.destination-repository-name }} - '${{ inputs.destination-repository-name }}'
- ${{ inputs.user-email }} - '${{ inputs.user-email }}'
- ${{ inputs.user-name }} - '${{ inputs.user-name }}'
- ${{ inputs.destination-repository-username }} - '${{ inputs.destination-repository-username }}'
- ${{ inputs.target-branch }} - '${{ inputs.target-branch }}'
- ${{ inputs.commit-message }} - '${{ inputs.commit-message }}'
- ${{ inputs.target-directory }} - '${{ inputs.target-directory }}'
branding: branding:
icon: 'git-commit' icon: git-commit
color: 'green' color: green