File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments