-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 1.15 KB
/
update-base-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Autoupdate micromamba-docker base image
on:
workflow_dispatch:
# Run every day at 12:18 (https://crontab.guru/every-6-hours)
schedule:
- cron: '18 12 * * *'
jobs:
generate_pr_if_new_micromamba_docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@5c3ccc22eb2c950a0fa5bc7c47190d8e3f7e681a
- name: Set up Python
uses: actions/setup-python@47c4a7af1d72897a511c975c95a5335bb6329dec
with:
python-version: "3.11"
- name: Update Dockerfile base image to latest version
id: update_dockerfile
run: |
python -m pip install --quiet --disable-pip-version-check -r scripts/update_base_image_reqs.txt
python scripts/update_base_image.py
- name: Create PR
uses: peter-evans/create-pull-request@ee93d78b55ada32aa74b5e9957aac9c2523dd22c
with:
branch: "update-base-image"
commit-message: "Update to micromamba base image to ${{ steps.update_dockerfile.outputs.new_docker_tag }}"
title: "Update to micromamba base image to ${{ steps.update_dockerfile.outputs.new_docker_tag }}"
delete-branch: true
reviewers: maresb