Refresh data #287
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 | |
environment: dev | |
permissions: | |
id-token: write # Graph auth | |
contents: write # committing | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# 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@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.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: Intune change detected |