Skip to content

Update uv lock files #48

Update uv lock files

Update uv lock files #48

Workflow file for this run

# Copyright 2024 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Update uv lock files
permissions:
contents: write # Allows jobs to modify repository content (for creating/updating lock files).
pull-requests: write # Allows jobs to create and manage pull requests (needed for automated PR creation).
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * 0" # At 4 AM UTC on every Sunday
jobs:
upgrade:
name: Upgrade uv lock files
runs-on: ubuntu-latest
if: github.repository_owner == 'mlrun'
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # 7.1.2
- name: Upgrade dependencies in the lock file with uv
run: make upgrade-mlrun-deps-lock
- name: Format PR title
id: format-title
run: |
if [ "${{ github.ref_name }}" != "development" ]; then
echo "title=[Requirements-automated] Upgrade lock files [${{ github.ref_name }}]" >> "$GITHUB_OUTPUT"
else
echo "title=[Requirements-automated] Upgrade lock files" >> "$GITHUB_OUTPUT"
fi
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # 7.0.8
with:
title: ${{ steps.format-title.outputs.title }}
body: |
Update the uv generated lock files.
Generated by the run:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
commit-message: Upgrade uv lock files
branch: "automated/uv-lock-upgrade-${{ github.ref_name }}"
delete-branch: true
# See:
# https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#token
# Fine-grained Personal Access Token (PAT) with contents: write and pull-requests: write scopes.
token: ${{ secrets.MLRUN_PR_PAT }}