Skip to content

Update dependencies #69

Update dependencies

Update dependencies #69

Workflow file for this run

name: Update dependencies
on:
schedule:
# On the first day of every month at 00:00.
- cron: '0 0 1 * *'
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
update_each_manifest:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
version:
- '1'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: x64
- name: Cache artifacts
uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Manifest.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: julia --color=yes -e 'import Pkg; Pkg.Registry.add("General")'
env:
JULIA_PKG_SERVER: ""
- run: julia --color=yes -e 'import Pkg; Pkg.Registry.update()'
- run: julia --color=yes --project=@. -e 'import Pkg; Pkg.instantiate'
- run: julia --color=yes --project=@. -e 'import Pkg; Pkg.update()'
- run: git status
- uses: actions/upload-artifact@v4
with:
name: manifest_files
path: Manifest.toml
if-no-files-found: error
make_single_pr:
needs: update_each_manifest
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: rm -rf /tmp/manifest_updater
- run: mkdir /tmp/manifest_updater
- run: chmod 700 /tmp/manifest_updater
- uses: actions/download-artifact@v4
with:
path: /tmp/manifest_updater/download_artifacts
- run: mv /tmp/manifest_updater/download_artifacts/manifest_files/Manifest.toml .
- run: rm -rf /tmp/manifest_updater
- run: chmod 600 Project.toml
- run: chmod 600 Manifest.toml
- run: git status
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true
branch: 'update_manifests/single_pr/all_manifests'
commit-message: '🤖 Update manifest file'
title: '🤖 Update manifest file'
body: ''