restore files deleted by failed workflow and fix main commit message

This commit is contained in:
Chenghao Mou 2024-08-07 12:36:21 +01:00
parent 4a63c482c4
commit b00067bc86
3 changed files with 67 additions and 2 deletions

View file

@ -29,8 +29,8 @@ jobs:
git config --global user.name "ai.robots.txt"
git config --global user.email "ai.robots.txt@users.noreply.github.com"
git add -A
if [ -n "${{ github.event.inputs.message }}" ]; then
git commit -m "${{ github.event.inputs.message }}"
if [ -n "${{ inputs.message }}" ]; then
git commit -m "${{ inputs.message }}"
else
git commit -m "${{ github.event.head_commit.message }}"
fi