Update action.yml to comply with entrypoint.sh

This commit is contained in:
Emre Ercan 2021-02-12 14:52:35 +01:00 committed by GitHub
parent 72e33f149a
commit 7503ef4f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,30 @@
name: 'Push directory to another repository' name: 'Push contents of a branch into a branch in another repository'
description: 'Useful to push files to another repository to be used, for example, via github pages' description: 'Useful to push content of a branch into another branch in another repository (by completely overriding the content in the desination repository) to be used, for example, for github pages'
inputs: inputs:
source-directory: source-repository-username:
description: 'Source directory from the origin directory' description: 'Username/organization of the source repository'
required: true required: true
destination-github-username: source-repository-name:
description: 'Name of the destination username/organization' description: 'Name of the source repository'
required: true required: true
destination-repository-name: source-branch:
description: 'Destination repository' description: 'Name of the source branch'
required: true
user-email:
description: 'Email for the git commit'
required: true required: true
destination-repository-username: destination-repository-username:
description: '[Optional] Username/organization for the destination repository' description: 'Username/organization of the destination repository'
required: false required: true
default: '' destination-repository-name:
target-branch: description: 'Name of the destination repository'
description: '[Optional] set target branch name for the destination repository. Defaults to "master"' required: true
default: 'master' destination-branch:
required: false description: 'Name of the destination branch'
required: true
commit-user-email:
description: 'Email for the git commit'
required: true
commit-username:
description: 'User name for the git commit'
required: true
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: '[Optional] commit message for the output repository. ORIGIN_COMMIT is replaced by the URL@commit in the origin repo'
default: 'Update from ORIGIN_COMMIT' default: 'Update from ORIGIN_COMMIT'
@ -29,13 +33,16 @@ runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'
args: args:
- ${{ inputs.source-directory }} - ${{ inputs.source-repository-username }}
- ${{ inputs.destination-github-username }} - ${{ inputs.source-repository-name }}
- ${{ inputs.destination-repository-name }} - ${{ inputs.source-branch }}
- ${{ inputs.user-email }}
- ${{ inputs.destination-repository-username }} - ${{ inputs.destination-repository-username }}
- ${{ inputs.target-branch }} - ${{ inputs.destination-repository-name }}
- ${{ inputs.destination-branch }}
- ${{ inputs.commit-user-email }}
- ${{ inputs.commit-username }}
- ${{ inputs.commit-message }} - ${{ inputs.commit-message }}
branding: branding:
icon: 'git-commit' icon: 'git-commit'
color: 'green' color: 'green'