2024-10-24 14:01:31 +00:00
|
|
|
name: Commit Files to Git
|
|
|
|
description: Commit files to git repository
|
2024-10-24 10:44:52 +00:00
|
|
|
inputs:
|
|
|
|
files:
|
|
|
|
required: true
|
2024-10-24 14:01:31 +00:00
|
|
|
description: files to commit
|
2024-10-24 10:44:52 +00:00
|
|
|
message:
|
|
|
|
required: true
|
2024-10-24 14:01:31 +00:00
|
|
|
description: commit message
|
2024-10-24 10:44:52 +00:00
|
|
|
branch:
|
|
|
|
required: true
|
2024-10-24 14:01:31 +00:00
|
|
|
description: git branch to commit into
|
2024-10-24 10:44:52 +00:00
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- name: Commit
|
2024-10-24 14:01:31 +00:00
|
|
|
shell: bash
|
2024-10-24 10:44:52 +00:00
|
|
|
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
|
2024-10-24 14:01:31 +00:00
|
|
|
shell: bash
|
|
|
|
run:
|
2024-10-24 10:44:52 +00:00
|
|
|
git push origin HEAD:${{ inputs.branch }}
|