-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.11 KB
/
auto-update.yml
File metadata and controls
46 lines (38 loc) · 1.11 KB
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
name: Auto-update registry
on:
schedule:
# Daily at 23:00 UTC. GitHub schedules are best-effort; jobs may run
# several minutes late or be skipped under platform load.
- cron: '0 23 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: auto-update
cancel-in-progress: false
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout registry
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git identity
run: |
git config user.name "OpenModelica Registry Bot"
git config user.email "actions@users.noreply.github.com"
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: '1.12'
- name: Run auto-register
run: julia --color=yes .ci/auto_register.jl
- name: Push registry commits
run: |
if [ "$(git rev-parse HEAD)" != "$(git rev-parse origin/master)" ]; then
git push origin HEAD:master
else
echo "No new versions; nothing to push."
fi