Merge branch 'main' of https://gitea.greyhound-software.com/deploy/reusable-workflows
This commit is contained in:
commit
5d6c83703c
22
.gitea/actions/commitGit/action.yaml
Normal file
22
.gitea/actions/commitGit/action.yaml
Normal file
@ -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 }}
|
Loading…
Reference in New Issue
Block a user