Refresh data #1219
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 * * * *" # hourly | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
environment: dev | |
permissions: | |
id-token: write # Graph auth | |
contents: write # committing | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.head_ref }} | |
# azure-identity doesn't support GitHub WIF | |
- uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 | |
with: | |
tenant-id: ${{ vars.AZURE_TENANT_ID }} | |
client-id: ${{ vars.AZURE_CLIENT_ID }} | |
allow-no-subscriptions: true | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: 3.x | |
cache: pip | |
- run: pip install -r requirements.txt | |
- run: python main.py | |
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4 | |
with: | |
default_author: github_actions | |
message: Change detected |