Resume Clusters Daily #12295
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: Resume Clusters Daily | |
run-name: Resume Clusters Daily | |
on: | |
schedule: | |
- cron: '*/30 * * * 1-5' | |
workflow_dispatch: | |
jobs: | |
resume-clusters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Setup OCM CLI | |
env: | |
OCM_TOKEN: ${{ secrets.OCM_TOKEN }} | |
run: | | |
cp bin/ocm /usr/local/bin/ocm | |
chmod +x /usr/local/bin/ocm | |
ocm login --token="${OCM_TOKEN}" | |
ocm list clusters | |
- name: Resume Clusters | |
env: | |
OCM_TOKEN: ${{ secrets.OCM_TOKEN }} | |
SMARTSHEET_ACCESS_TOKEN: ${{ secrets.SMARTSHEET_ACCESS_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUD_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUD_SECRET }} | |
run: | | |
python src/resume_clusters_daily.py |