Skip to content

Commit 6c4af4b

Browse files
authored
Merge pull request #7 from JuliaRobotics/hf/dev
Update GitHub workflows
2 parents ccb319e + 1568144 commit 6c4af4b

File tree

6 files changed

+64
-21
lines changed

6 files changed

+64
-21
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: '00 00 * * *'
4+
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v2
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
1342
env:
1443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} # optional
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
44+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/Documentation.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@ name: Documentation
22

33
on:
44
push:
5-
branches:
6-
- main # update to match your development branch (master, main, dev, trunk, ...)
7-
tags: '*'
5+
branches: [main, master]
6+
tags: [v*]
87
pull_request:
98

109
jobs:
1110
build:
1211
permissions:
12+
actions: write
1313
contents: write
14+
pull-requests: read
15+
statuses: write
1416
runs-on: ubuntu-latest
1517
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@v1
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
1820
with:
19-
version: '1.8'
21+
version: '1'
22+
- uses: julia-actions/cache@v2
2023
- name: Install dependencies
2124
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2225
- name: Build and deploy

.github/workflows/TagBot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ on:
66
workflow_dispatch:
77
inputs:
88
lookback:
9-
default: 3
9+
default: "3"
1010
permissions:
11+
actions: read
12+
checks: read
1113
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
1223
jobs:
1324
TagBot:
1425
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TORA"
22
uuid = "a6da6c0f-f153-4ec6-bf42-6dc0ab733f84"
33
authors = ["Henrique Ferrolho <[email protected]>"]
4-
version = "0.3.0"
4+
version = "0.3.1"
55

66
[deps]
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
@@ -30,7 +30,7 @@ Colors = "0.12, 0.13"
3030
ForwardDiff = "0.10"
3131
GeometryBasics = "0.4, 0.5"
3232
Ipopt = "1"
33-
MeshCat = "0.14, 0.15, 0.16, 1"
33+
MeshCat = "1"
3434
MeshCatMechanisms = "0.8, 0.9"
3535
NPZ = "0.4"
3636
Plots = "1"

notebooks/Example.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@
238238
],
239239
"metadata": {
240240
"kernelspec": {
241-
"display_name": "Julia 1.10.2",
241+
"display_name": "Julia 1.11.1",
242242
"language": "julia",
243-
"name": "julia-1.10"
243+
"name": "julia-1.11"
244244
},
245245
"language_info": {
246246
"file_extension": ".jl",
247247
"mimetype": "application/julia",
248248
"name": "julia",
249-
"version": "1.10.2"
249+
"version": "1.11.1"
250250
}
251251
},
252252
"nbformat": 4,

notebooks/Tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@
128128
],
129129
"metadata": {
130130
"kernelspec": {
131-
"display_name": "Julia 1.10.2",
131+
"display_name": "Julia 1.11.1",
132132
"language": "julia",
133-
"name": "julia-1.10"
133+
"name": "julia-1.11"
134134
},
135135
"language_info": {
136136
"file_extension": ".jl",
137137
"mimetype": "application/julia",
138138
"name": "julia",
139-
"version": "1.10.2"
139+
"version": "1.11.1"
140140
}
141141
},
142142
"nbformat": 4,

0 commit comments

Comments
 (0)