Run Custom Script Every 1 Hour #10403
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Custom Script Every 1 Hour | |
on: | |
schedule: | |
- cron: '*/60 * * * *' # Run the script every 1 Hour | |
workflow_dispatch: | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest # You can choose a different runner if needed | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install cabextract | |
run: sudo apt-get update && sudo apt-get install -y cabextract | |
- name: chmod | |
run: | | |
chmod 777 ./ | |
chmod 777 ./* | |
- name: Run custom shell script | |
run: | | |
chmod +x c2rdl.sh # Make the script executable if needed | |
./c2rdl.sh # Replace with the name of your script | |
- name: Complete workflow | |
run: echo "Script execution complete!" |