Skip to content

Update awx.yml

Update awx.yml #4

Workflow file for this run

name: Hourly Workflow
on:
schedule:
- cron: '0 * * * *' # Run every hour
push:
branches:
- main # Adjust the branch as needed
jobs:
your-job:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up GitHub CLI
uses: sersoft-gmbh/setup-gh-cli-action@v2
with:
version: stable
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Run Python Script
run: |
gh --version # Check GitHub CLI version (optional)
python awxdraft.py
env:
GH_TOKEN: ${{ secrets.AWX_TOKEN }}