Skip to content

Commit 5166b53

Browse files
committed
Add piplock-renewal worflow for the 2024a release
1 parent b32449b commit 5166b53

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks
3+
4+
name: Weekly Pipfile.locks renewal on [2024a] branch
5+
6+
on: # yamllint disable-line rule:truthy
7+
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
8+
schedule:
9+
- cron: "0 22 * * 1"
10+
workflow_dispatch: # for manual trigger workflow from GH Web UI
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
# Give the default GITHUB_TOKEN write permission to commit and push the
18+
# added or changed files to the repository.
19+
contents: write
20+
21+
steps:
22+
# Checkout the paricular branch
23+
- name: Checkout code from the release branch
24+
uses: actions/checkout@v4
25+
with:
26+
ref: 2024a
27+
token: ${{ secrets.GH_ACCESS_TOKEN }}
28+
29+
# Setup Python environment
30+
- name: Setup Python environment
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: |
34+
3.8
35+
3.9
36+
- name: Install pipenv
37+
run: pip install pipenv
38+
39+
# Runs the makefile recipe `refresh-pipfilelock-files` and push the chances back to the branch
40+
- name: Run make refresh-pipfilelock-files and push the chances back to the branch
41+
run: |
42+
make refresh-pipfilelock-files
43+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
44+
git config --global user.name "GitHub Actions"
45+
git add .
46+
git commit -m "Update the pipfile.lock via the weekly workflow action"
47+
git push

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE_REGISTRY ?= quay.io/opendatahub/workbench-images
2-
RELEASE ?= 2023b
2+
RELEASE ?= 2024a
33

44
# OS dependant: Generate date, select appropriate cmd to locate container engine
55
ifeq ($(OS), Windows_NT)

0 commit comments

Comments
 (0)