Skip to content

Pkg.update

Pkg.update #1836

Workflow file for this run

name: Pkg.update
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: julia-actions/setup-julia@fa02766e078afaaf09b14210362cee14137e6a32 # v3.0.2
with:
# Keep in sync with the ci.yml and the Dockerfile
version: "1.12"
- 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@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
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 }}