File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This action periodically runs Pkg.instantiate() and Pkg.resolve() on the
2
+ # top-level environment. If this leads to a change in the Manifest.toml file,
3
+ # it will open a PR to update the Manifest.toml file. This ensures that the
4
+ # version of the Manifest in the repository is consistent with the version of the
5
+ # Manifest used by the CI system (i.e. during the actual docs generation).
6
+ #
7
+ # See https://github.com/TuringLang/docs/issues/518 for motivation.
8
+
9
+ name : Resolve Manifest
10
+ on :
11
+ push :
12
+ branches :
13
+ - master
14
+ workflow_dispatch :
15
+
16
+ jobs :
17
+ check-version :
18
+ runs-on : ubuntu-latest
19
+
20
+ permissions :
21
+ contents : write
22
+ pull-requests : write
23
+
24
+ env :
25
+ # Disable precompilation as it takes a long time and is not needed for this workflow
26
+ JULIA_PKG_PRECOMPILE_AUTO : 0
27
+
28
+ steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Setup Julia
33
+ uses : julia-actions/setup-julia@v2
34
+
35
+ - name : Instantiate and resolve
36
+ run : |
37
+ julia -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()'
38
+
39
+ - name : Create a PR with suggested changes
40
+ id : create_pr
41
+ uses : peter-evans/create-pull-request@v6
42
+ with :
43
+ branch : resolve-manifest
44
+ commit-message : " Update Manifest.toml"
45
+ body : " This PR is automatically generated by the `resolve_manifest.yml` GitHub Action."
46
+ title : " Update Manifest.toml to match CI environment"
You can’t perform that action at this time.
0 commit comments