Skip to content

Run Custom Script Every 1 Hour #10417

Run Custom Script Every 1 Hour

Run Custom Script Every 1 Hour #10417

Workflow file for this run

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!"