workflows: support commit descriptions

Signed-off-by: Jai Luthra <me@jailuthra.in>
This commit is contained in:
Jai Luthra 2023-11-09 14:00:55 +05:30 committed by Jai Luthra
parent 16e95c3bd1
commit 3b52cbf2c3

View File

@ -23,6 +23,10 @@ on:
- DCH - DCH
- Studio Driver - Studio Driver
- DCH (Hotfix) - DCH (Hotfix)
description:
description: 'Commit description'
required: false
type: string
permissions: permissions:
contents: write contents: write
@ -117,6 +121,6 @@ jobs:
git config --local user.email "action@github.com" git config --local user.email "action@github.com"
git config --local user.name "GitHub Action" git config --local user.name "GitHub Action"
git add -A git add -A
git diff --quiet --exit-code --cached || git commit -m "${{ env.OS }}: add support for ${{ env.VARIANT }} driver ${{ env.VERSION }}" git diff --quiet --exit-code --cached || git commit -m "${{ env.OS }}: add support for ${{ env.VARIANT }} driver ${{ env.VERSION }}" -m "${{ inputs.description }}"
git push origin master git push origin master
echo "Committed and pushed changes" echo "Committed and pushed changes"