-
Notifications
You must be signed in to change notification settings - Fork 19
79 lines (73 loc) · 2.14 KB
/
run_scripts.yml
File metadata and controls
79 lines (73 loc) · 2.14 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# workflow name
name: "Run scripts"
# fire on
# Only runs when invoked from another workflow or manually from menu
on: workflow_dispatch
#########
# actions
#########
# actions/checkout@v4.1.7
# actions/setup-python@v5.2.0
# peter-evans/create-pull-request@v6.1.0
# Add permissions to included token for this workflow run
permissions:
contents: write # can manip files
pull-requests: write # can manip PRs
jobs:
# Run scripts
run_standard_scripts:
name: "Run standard scripts and open PR"
runs-on: ${{ matrix.os-name }}
strategy:
matrix:
os-name: [
ubuntu-latest
]
python-version: [
"3.10"
]
steps:
# checkout commit
- name: ✔️Checkout commit
uses: actions/checkout@v4.1.7
# install python
- name: 💿Install Python
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
# python version
- name: 🐍Python Version
shell: bash
run: |
python --version
# python modules
- name: 🐍Python Modules
shell: bash
run: |
python -m pip install -r "./resources/app/manifests/pip_requirements.txt"
# Analyze used GitHub Actions
- name: Analyze used GitHub Actions
shell: bash
run: |
python ./resources/ci/common/list_actions.py
# Run Strat ID validator
# Run Autoformatter
- name: Run Strat ID Generator
working-directory: scripts
run: python populate_strat_ids.py
- name: Run Tech ID Generator
working-directory: scripts
run: python populate_tech_ids.py
- name: Run Autoformatter
working-directory: scripts
run: python autoformat.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.1.0
with:
commit-message: Run Strat ID, Tech ID, and Notable ID Generator & Autoformatter
title: Run Scripts
body: This PR is auto-generated.
base: master
labels: Run Scripts
branch: auto-run-scripts
delete-branch: true