Pkg.update #1350
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pkg.update | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update-manifest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
# Keep in sync with the ci.yml and the Dockerfile | |
version: "1.10" | |
- name: 'Pkg.update' | |
run: | | |
julia --project=. -e 'using Pkg; Pkg.update()' | |
echo 'PKG_DIFF<<EOF' >> $GITHUB_ENV | |
echo 'pkg> status --project --diff' >> $GITHUB_ENV | |
julia --project=. -e 'using Pkg; Pkg.status(; mode=PKGMODE_PROJECT, diff=true)' >> $GITHUB_ENV | |
echo '' >> $GITHUB_ENV | |
echo 'pkg> status --manifest --diff' >> $GITHUB_ENV | |
julia --project=. -e 'using Pkg; Pkg.status(; mode=PKGMODE_MANIFEST, diff=true)' >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- name: 'Create pull request' | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
title: 'Automatic Pkg.update()' | |
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>' | |
body: | | |
Automatic `Pkg.update()` with the following changes: | |
``` | |
${{ env.PKG_DIFF }} | |
``` | |
commit-message: | | |
Automatic Pkg.update() with the following changes: | |
${{ env.PKG_DIFF }} |