Refresh data #20
Workflow file for this run
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: Refresh data | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # daily | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Graph auth | |
contents: write # committing | |
steps: | |
- uses: actions/[email protected] | |
# azure-identity doesn't support GitHub WIF | |
- uses: azure/login@v1 | |
with: | |
tenant-id: ${{ vars.AZURE_TENANT_ID }} | |
client-id: ${{ vars.AZURE_CLIENT_ID }} | |
allow-no-subscriptions: true | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.12 | |
cache: pip | |
- run: pip install -r requirements.txt | |
- run: python main.py | |
- uses: EndBug/[email protected] | |
with: | |
default_author: github_actions | |
message: 'chore: refresh data' |