Skip to content

Commit 9eb1924

Browse files
committed
Update doc build dependencies.
1 parent c5f8167 commit 9eb1924

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pkg-update.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update documentation dependencies
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *' # daily
5+
jobs:
6+
update-manifest:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: julia-actions/setup-julia@v1
11+
with:
12+
version: '1' # Keep in sync with version that builds docs
13+
- name: 'Pkg.update'
14+
run: |
15+
julia --project=. -e 'using Pkg; Pkg.update()'
16+
echo 'PKG_DIFF<<EOF' >> $GITHUB_ENV
17+
echo 'pkg> status --project --diff' >> $GITHUB_ENV
18+
julia --project=. -e 'using Pkg; Pkg.status(; mode=PKGMODE_PROJECT, diff=true)' >> $GITHUB_ENV
19+
echo '' >> $GITHUB_ENV
20+
echo 'pkg> status --manifest --diff' >> $GITHUB_ENV
21+
julia --project=. -e 'using Pkg; Pkg.status(; mode=PKGMODE_MANIFEST, diff=true)' >> $GITHUB_ENV
22+
echo 'EOF' >> $GITHUB_ENV
23+
- name: 'Create pull request'
24+
uses: peter-evans/create-pull-request@v3
25+
with:
26+
title: 'Automatic Pkg.update()'
27+
author: 'GitHub <noreply@github.com>'
28+
body: |
29+
Automatic `Pkg.update()` with the following changes:
30+
```
31+
${{ env.PKG_DIFF }}
32+
```
33+
commit-message: |
34+
Automatic Pkg.update() with the following changes:
35+
36+
${{ env.PKG_DIFF }}

0 commit comments

Comments
 (0)