-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.09 KB
/
update_repo.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
42
43
44
45
46
# Release script for Alfa Addon
name: update
on:
workflow_dispatch:
# Set permissions for GitHub key
permissions: write-all
jobs:
deploy:
name: Update repository
runs-on: ubuntu-latest
env:
GIT_USER_NAME: Alfa
GIT_USER_EMAIL: [email protected]
steps:
- name: Configure Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Checkout repo
uses: actions/checkout@v2
- name: Set-up environment
run: |
git config --global user.name "[CI] Alfa"
git config --global user.email "[email protected]"
- name: Start update
run: |
# Updating
echo "Entering Git repo directory"
cd ${{ github.workspace }}
echo "pip-installing lxml"
pip install lxml
echo "Updating repository"
python repo_prep.py
echo "Commiting..."
git add .
git commit -m "Updated addons.xml, addons.xml.md5"
git push
echo "Update finished!"