Skip to content

Commit 6a88348

Browse files
committed
Add GHA workflow to resolve Manifest file periodically
1 parent 6014490 commit 6a88348

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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"

0 commit comments

Comments
 (0)