generated from wsp-sag/project_card_registry_template
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1.05 KB
/
update-registry.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
name: Update Registry
on: [push]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip update')"
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: execute py script
run: |
python -m pip install --upgrade pip
pip install --user -e git+https://github.com/wsp-sag/network_wrangler.git@main#egg=network_wrangler
pip install pytest
python update_registry.py
- name: commit files
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit --allow-empty -m "GitHub Action automated registry update" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}