Skip to content

Commit

Permalink
Update notify_telegram.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyassesalama authored Dec 5, 2024
1 parent 61b92cc commit 65f4076
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/notify_telegram.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import os
import subprocess

# Switch to the 'host' branch
subprocess.run(['git', 'checkout', 'host'], check=True)
# Switch to the 'host' branch or create it if it does not exist
try:
subprocess.run(['git', 'checkout', 'host'], check=True)
except subprocess.CalledProcessError:
subprocess.run(['git', 'checkout', '-b', 'host'], check=True)

# List all files in the current directory
for root, dirs, files in os.walk('.'):
Expand Down

0 comments on commit 65f4076

Please sign in to comment.