-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1018 Bytes
/
fetch_repos.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
name: Fetch Repos
on:
workflow_dispatch:
schedule:
- cron: '0 0 */7 * *'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
fetch-repos:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v3.5.3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.10.10"
- name: Install dependencies
run: |
conda install git-lfs -c conda-forge
git-lfs install
conda install gh -c conda-forge
- name: Install Python Dependencies
run: |
pip install requests
- name: Execute Fetch Script
run: |
python src/fetch_repos.py
- name: Commit and Push Changes
uses: EndBug/add-and-commit@v9
with:
add: "files/repo_info.json"
message: "Update repo_info.json via GitHub Actions"
push: true