-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (32 loc) · 1019 Bytes
/
changed-yemen-info.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
37
38
39
40
41
name: Generate needed formats from JSON
on:
push:
paths:
- 'yemen-info.json'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: install required libraries
run: pip install -r requirements.txt
- name: run the tests
run: python3 -B -m pytest tests/
- name: run the automated tasks
run: python3 -B utilities/automated-tasks.py
- name: add and commit generated file
run: |
git pull origin main
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git commit -m "automatically converted after editing yemen-info.json"
- name: push the generated file
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GIT_ACTION_TOKEN }}
branch: main