updated commitGit action
This commit is contained in:
parent
520621eb37
commit
ae73389a91
@ -1,22 +1,26 @@
|
|||||||
name: 'Commit Files to Git'
|
name: Commit Files to Git
|
||||||
|
description: Commit files to git repository
|
||||||
inputs:
|
inputs:
|
||||||
files:
|
files:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
description: files to commit
|
||||||
message:
|
message:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
description: commit message
|
||||||
branch:
|
branch:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
description: git branch to commit into
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Commit
|
- name: Commit
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
|
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
|
||||||
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
|
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
|
||||||
git add ${{ inputs.files }}
|
git add ${{ inputs.files }}
|
||||||
git commit -m "${{ inputs.message }}"
|
git commit -m "${{ inputs.message }}"
|
||||||
- name: Push
|
- name: Push
|
||||||
|
shell: bash
|
||||||
|
run:
|
||||||
git push origin HEAD:${{ inputs.branch }}
|
git push origin HEAD:${{ inputs.branch }}
|
||||||
|
Loading…
Reference in New Issue
Block a user