Skip to content

Run rhoai-disconnected-helper script once a day #494

Run rhoai-disconnected-helper script once a day

Run rhoai-disconnected-helper script once a day #494

name: Run rhoai-disconnected-helper script once a day
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run rhoai-disconnected-helper.sh script
run: |
chmod +x rhoai-disconnected-helper.sh
chmod +x rhoai-dih.sh
./rhoai-disconnected-helper.sh
shell: bash
- name: Pull latest changes from main branch
run: git pull origin main
shell: bash
- name: Commit and push changes to main branch
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
message: "Update rhoai-disconnected-helper.sh script"
repository: red-hat-data-services/rhoai-disconnected-install-helper