-
-
Notifications
You must be signed in to change notification settings - Fork 83
51 lines (40 loc) · 1.34 KB
/
hijacklibs_list.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
47
48
49
50
name: Hijacklibs Data Processing
on:
schedule:
- cron: '0 0 * * *' # Runs every day
workflow_dispatch:
jobs:
process-data:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install pyyaml
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run the script
run: python Lists/Hijacklibs/hijacklibs.py
- name: List files in the root directory
run: ls -la
- name: List files in the Lists/Hijacklibs directory
run: ls -la Lists/Hijacklibs/
- name: Move output files to correct directory (if necessary)
run: |
mv hijacklibs_list.csv Lists/Hijacklibs/ || echo "File not found in root."
- name: Commit and Push Changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add Lists/Hijacklibs/hijacklibs_list.csv
git commit -m "Update hijacklibs list" --allow-empty
git push
- name: Upload csv Results
uses: actions/upload-artifact@v3
with:
name: hojacklibs-data-csv
path: Lists/Hijacklibs/hijacklibs_list.csv