-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (31 loc) · 1016 Bytes
/
Copy pathradioisotopes.yaml
File metadata and controls
43 lines (31 loc) · 1016 Bytes
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: Validate Nuclear DB
on:
# When I push on this path, this job has to be run:
push:
paths:
- 'assets/apps/db/radioisotopes-min.json'
# Provide the option to run it manually if required.
workflow_dispatch:
jobs:
validate:
# Execute this job on a Linux environment.
runs-on: ubuntu-latest
# Define read-only permission.
permissions:
contents: read
steps:
# 0. Initialize project sources.
- name: Checkout repository
uses: actions/checkout@v7
# 1. Install the Python interpreter.
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
# 2. Run the script from secret URL.
- name: Validate database
run: |
curl -sL "${{ secrets.GIST_SECRET_SCRIPT }}" -o radioisotopes.py && \
python radioisotopes.py \
--input assets/apps/db/radioisotopes-min.json \
--enhanced-db "${{ secrets.GIST_LINK_TO_DB }}"