-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 893 Bytes
/
Copy pathrepositories.yml
File metadata and controls
29 lines (29 loc) · 893 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
name: update-repositories
on:
schedule:
# Every Monday at 01:07 UTC
- cron: "07 01 * * MON"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: actions/checkout@v3
- name: Install
run: julia --project=. -e 'import Pkg; Pkg.instantiate()'
- name: Repositories
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=. scripts/repositories.jl --update
- name: push
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
run: |
git config --global user.email "odow@users.noreply.github.com"
git config --global user.name "Oscar Dowson"
git commit -am "Automatic update script."
git push
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}