-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 1.09 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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