From 3210059fbbc5385f8870df9c3b0cfd913ee5e2c1 Mon Sep 17 00:00:00 2001 From: Robert Rosendahl Date: Thu, 24 Oct 2024 12:44:52 +0200 Subject: [PATCH] added commitGit action --- .gitea/actions/commitGit.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/actions/commitGit.yaml diff --git a/.gitea/actions/commitGit.yaml b/.gitea/actions/commitGit.yaml new file mode 100644 index 0000000..7b888a7 --- /dev/null +++ b/.gitea/actions/commitGit.yaml @@ -0,0 +1,22 @@ +name: 'Commit Files to Git' +inputs: + files: + required: true + type: string + message: + required: true + type: string + branch: + required: true + type: string +runs: + using: 'composite' + steps: + - name: Commit + 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 + git push origin HEAD:${{ inputs.branch }}