From b1259df25eadf5a19798bb88104c32ae240d1fec Mon Sep 17 00:00:00 2001 From: Robert Rosendahl Date: Thu, 24 Oct 2024 11:21:49 +0200 Subject: [PATCH] added commitGit workflow --- .gitea/workflows/commitGit.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/commitGit.yaml diff --git a/.gitea/workflows/commitGit.yaml b/.gitea/workflows/commitGit.yaml new file mode 100644 index 0000000..fe6a1b2 --- /dev/null +++ b/.gitea/workflows/commitGit.yaml @@ -0,0 +1,21 @@ +name: Commit Files to Git +on: + workflow_call: + inputs: + files: + required: true + type: string + message: + required: true + type: string +jobs: + CommitGit: + runs-on: ubuntu-latest + 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 }}" + git push origin HEAD:${{ inputs.branch }}