Skip to content

Commit

Permalink
add php bot to cronJob
Browse files Browse the repository at this point in the history
  • Loading branch information
loka1 committed Aug 10, 2024
1 parent 3c10543 commit dd9c25b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions toolforge/cronjobs1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@
image: tf-python39
emails: onfailure
<<: *defaults
- name: php-archive-bot
no-filelog: false
command: $HOME/repos/toolforge/jobs/php_archive_bot.sh
schedule: '0 6 * * *'
image: php7.4
emails: onfailure
6 changes: 6 additions & 0 deletions toolforge/jobs/php_archive_bot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

php "$HOME"/sc/script/MyScripts.php

# Exit the script after running all the Python files
exit 0

0 comments on commit dd9c25b

Please sign in to comment.