1
0
reusable-workflows/.gitea/actions/commitGit/action.yaml

27 lines
682 B
YAML

name: Commit Files to Git
description: Commit files to git repository
inputs:
files:
required: true
description: files to commit
message:
required: true
description: commit message
branch:
required: true
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 }}