Update awx.yml #4
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: 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 }} |