mirror of
https://github.com/MillironX/docker-BioJulia.git
synced 2024-11-21 22:36:05 +00:00
Add automatic package upgrading workflow
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
193fac3a9c
commit
9f8b8fbdde
1 changed files with 39 additions and 0 deletions
39
.github/workflows/update.yml
vendored
Normal file
39
.github/workflows/update.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: Update Packages
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 1,15 * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pkg_up:
|
||||||
|
name: Update Packages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
with:
|
||||||
|
version: "1.6"
|
||||||
|
- id: julia_ver
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=version::$(julia -v | awk '{print $3}')"
|
||||||
|
- run: |
|
||||||
|
julia --project=${GITHUB_WORKSPACE} -e '
|
||||||
|
using Pkg
|
||||||
|
Pkg.instantiate()
|
||||||
|
Pkg.update()'
|
||||||
|
- id: time
|
||||||
|
uses: nanzm/get-time-action@v1.1
|
||||||
|
with:
|
||||||
|
format: "YYYY-MM-DD"
|
||||||
|
- uses: devops-infra/action-commit-push@v0.9.0
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
commit_message: "[⚡ AUTOMATED]: Pkg upgrade for ${{ steps.time.outputs.time }}"
|
||||||
|
- id: hash
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=hash::$(git rev-parse --short HEAD)"
|
||||||
|
- uses: mathieudutour/github-tag-action@v6.0
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
commit_sha: ${{ steps.hash.outputs.hash }}
|
||||||
|
custom_tag: ${{ steps.julia_ver.outputs.version }}-${{ steps.hash.outputs.hash }}
|
Loading…
Reference in a new issue