Skip to content

Commit ec08dbf

Browse files
authored
Merge pull request #1 from ERGO-Code/repo-stats-wip
Repo stats wip
2 parents 9ce3943 + 6781b80 commit ec08dbf

File tree

7 files changed

+684
-0
lines changed

7 files changed

+684
-0
lines changed

.github/workflows/repositories.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: update-repositories
2+
on:
3+
schedule:
4+
# Every Monday at 01:07 UTC
5+
- cron: "07 01 * * MON"
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/setup-julia@latest
12+
with:
13+
version: '1'
14+
- uses: actions/checkout@v3
15+
- name: Install
16+
run: julia --project=. -e 'import Pkg; Pkg.instantiate()'
17+
- name: Repositories
18+
env:
19+
PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: julia --project=. scripts/repositories.jl --update
21+
- name: push
22+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
23+
run: |
24+
git config --global user.email "[email protected]"
25+
git config --global user.name "Ivet Galabova"
26+
git commit -am "Automatic update script."
27+
git push
28+
env:
29+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
# personal access token, not commited
35+
dev.env
36+
37+
.vscode

0 commit comments

Comments
 (0)