From 38d751da52dd8ca31676d1f298f5973e9f7e3e4d Mon Sep 17 00:00:00 2001 From: Eliminater74 Date: Sun, 29 Aug 2021 18:07:37 -0400 Subject: [PATCH] Update action.yml Script: Cleanup --- action.yml | 62 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/action.yml b/action.yml index 029ea78..bb093bc 100644 --- a/action.yml +++ b/action.yml @@ -1,23 +1,27 @@ -name: 'Push directory to another repository directory' -description: 'Useful to push files to another repository to be used, for example, via github pages' +name: Push directory to another repository directory +description: >- + Useful to push files to another repository to be used, for example, via github + pages inputs: source-before-directory: - description: 'Source before directory from the origin directory' + description: Source before directory from the origin directory required: false source-directory: - description: 'Source directory from the origin directory' + description: Source directory from the origin directory required: true destination-github-username: - description: 'Name of the destination username/organization' + description: Name of the destination username/organization required: true destination-repository-name: - description: 'Destination repository' + description: Destination repository required: true user-email: - description: 'Email for the git commit' + description: Email for the git commit required: true 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 default: '' destination-repository-username: @@ -25,31 +29,35 @@ inputs: required: false default: '' target-branch: - description: '[Optional] set target branch name for the destination repository. Defaults to "main" for historical reasons' - default: 'main' + description: >- + [Optional] set target branch name for the destination repository. Defaults + to "main" for historical reasons + default: main required: false commit-message: - 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' + 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 required: false target-directory: description: '[Optional] The directory to wipe and replace in the target repository' - default: '.' + default: . required: false runs: - using: 'docker' - image: 'Dockerfile' + using: docker + image: Dockerfile args: - - ${{ inputs.source-before-directory }} - - ${{ inputs.source-directory }} - - ${{ inputs.destination-github-username }} - - ${{ inputs.destination-repository-name }} - - ${{ inputs.user-email }} - - ${{ inputs.user-name }} - - ${{ inputs.destination-repository-username }} - - ${{ inputs.target-branch }} - - ${{ inputs.commit-message }} - - ${{ inputs.target-directory }} + - '${{ inputs.source-before-directory }}' + - '${{ inputs.source-directory }}' + - '${{ inputs.destination-github-username }}' + - '${{ inputs.destination-repository-name }}' + - '${{ inputs.user-email }}' + - '${{ inputs.user-name }}' + - '${{ inputs.destination-repository-username }}' + - '${{ inputs.target-branch }}' + - '${{ inputs.commit-message }}' + - '${{ inputs.target-directory }}' branding: - icon: 'git-commit' - color: 'green' + icon: git-commit + color: green