Skip to content

Commit

Permalink
Update post-bot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amritokun committed Jan 26, 2025
1 parent 2699e6d commit 955bec4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/post-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ jobs:
# Commit and Push Changes
- name: Commit and Push Changes
run: |
COMMIT_MESSAGE=$(cat commit_mesg.txt)
rm commit_mesg.txt
curl -sL "https://raw.githubusercontent.com/hipexscape/Scripts/tsm/commit_id.sh" | bash
git add . && git commit -sm "$COMMIT_MESSAGE"
git push origin --force
if [ -f commit_mesg.txt ]; then
COMMIT_MESSAGE=$(cat commit_mesg.txt)
rm commit_mesg.txt
else
echo "commit_mesg.txt not found! Using default commit message."
COMMIT_MESSAGE="OTA: Update new IDs and push OTA [BOT]"
fi
curl -sL "https://raw.githubusercontent.com/hipexscape/Scripts/tsm/commit_id.sh" | bash
git add .
git commit -sm "$COMMIT_MESSAGE"
git push origin --force

0 comments on commit 955bec4

Please sign in to comment.