From ae73389a9128ce0d3decb307f8817f5680bf74a4 Mon Sep 17 00:00:00 2001 From: Robert Rosendahl Date: Thu, 24 Oct 2024 16:01:31 +0200 Subject: [PATCH] updated commitGit action --- .gitea/actions/commitGit/action.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/actions/commitGit/action.yaml b/.gitea/actions/commitGit/action.yaml index 7b888a7..1b4d9d6 100644 --- a/.gitea/actions/commitGit/action.yaml +++ b/.gitea/actions/commitGit/action.yaml @@ -1,22 +1,26 @@ -name: 'Commit Files to Git' +name: Commit Files to Git +description: Commit files to git repository inputs: files: required: true - type: string + description: files to commit message: required: true - type: string + description: commit message branch: required: true - type: string + description: git branch to commit into runs: using: 'composite' steps: - name: Commit + shell: bash run: | git config user.name "${{ vars.GIT_DEPLOY_NAME }}" git config user.email "${{ vars.GIT_DEPLOY_MAIL }}" git add ${{ inputs.files }} git commit -m "${{ inputs.message }}" - name: Push + shell: bash + run: git push origin HEAD:${{ inputs.branch }}