Run rhoai-disconnected-helper script once a day #402
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 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 |