forked from MicrosoftDocs/executable-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.02 KB
/
metadata.yml
File metadata and controls
43 lines (35 loc) · 1.02 KB
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
37
38
39
40
41
42
43
name: Run on metadata.json change
on:
push:
paths:
- 'scenarios/metadata.json'
workflow_dispatch:
permissions:
contents: write
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
repository: 'MicrosoftDocs/executable-docs'
ref: your-branch-name # replace with your branch name
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run metadata.py
run: python .github/workflows/metadata.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push changes
run: |
git add .
git commit -m "Updated localized metadata.json files"
git push