Skip to content

Merge pull request #20 from bopen/update-environment-file #20

Merge pull request #20 from bopen/update-environment-file

Merge pull request #20 from bopen/update-environment-file #20

Workflow file for this run

name: check-uv-lock
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
check-uv-lock:
name: Check if uv lock is up to date
runs-on: ubuntu-latest
steps:
- name: Checkout repositories
uses: bopen/ci-cd/setup-deploy@main
with:
repo: bopen/edh-catalogue-deploy
deps-list: "bopen/edh-catalogue-api bopen/edh-catalogue-manager"
deps-versions-file: bopen/edh-catalogue-deploy/environment.release
git-pat: ${{ secrets.GIT_PAT }}
- name: Check and update uv lock
id: check-update-uv-lock
uses: bopen/ci-cd/check-update-uv-lock@main
with:
repo-path: bopen/edh-catalogue-deploy
- name: Create Pull Request
if: steps.check-update-uv-lock.outputs.uv-lock == 'true'
uses: peter-evans/create-pull-request@v5
with:
commit-message: "🤖 Update uv lock"
title: "🤖 Update uv lock"
body: "This Pull Request has been automatically created by the workflow to update the `uv.lock` file."
base: main
branch: update-uv-lock
path: bopen/edh-catalogue-deploy
assignees: ${{ github.actor }}
- name: Fail if uv lock is not up to date
if: ${{ github.event == 'workflow_call' && steps.check-update-uv-lock.outputs.uv-lock == 'true' }}
run: |
echo "A Pull Request has been opened to update the uv lock file."
exit 1