Version 0.24.0 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update default image in notebooks | |
on: | |
release: | |
types: [published] | |
jobs: | |
update-notebooks-default-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get release tag | |
run: | | |
echo "NEW_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Get image name | |
run: | | |
echo "NEW_IMAGE=renku/renkulab-py:3.9-${{ env.NEW_VERSION }}" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
repository: SwissDataScienceCenter/renku-notebooks | |
ref: main | |
fetch-depth: 1 | |
- name: Update image version | |
run: | | |
sed -i -e 's|defaultSessionImage:.*|defaultSessionImage: "${{ env.NEW_IMAGE }}"|' ./helm-chart/renku-notebooks/values.yaml | |
- name: Submit PR | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }} | |
commit-message: "chore(app): Update default session image to ${{ env.NEW_IMAGE }}" | |
title: "chore(app): Update default session image to ${{ env.NEW_IMAGE }}" | |
branch: "chore-update-default-image-${{ env.NEW_VERSION }}" | |
delete-branch: true | |
author: "Renku Bot <[email protected]>" | |
committer: "Renku Bot <[email protected]>" | |
body: "Generated automatically on a new release in renkulab-docker to update the default image used when launching a user session." |