Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions .github/workflows/_update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,26 @@ jobs:
id: ref
run: echo "date=$(date +%F)" | tee -a "$GITHUB_OUTPUT"

create-bump-branch:
needs: [pre-flight]
runs-on: ubuntu-latest
env:
SOURCE_BRANCH: ${{ needs.pre-flight.outputs.bump-branch }}
TARGET_BRANCH: ${{ inputs.target-branch }}
steps:
- name: Create bump branch if not exists
run: |
if ! git ls-remote --exit-code origin $SOURCE_BRANCH; then
git checkout -b $SOURCE_BRANCH $TARGET_BRANCH
git push origin $SOURCE_BRANCH
fi

update-lockfile:
environment: nemo-ci
runs-on: ubuntu-latest
needs: [pre-flight]
needs:
- pre-flight
- create-bump-branch
strategy:
fail-fast: false
matrix:
Expand All @@ -50,13 +66,6 @@ jobs:
run: |
docker build -f docker/Dockerfile.ci --build-arg PACKAGE=${{ matrix.package }} -t eval .

- name: Create bump branch if not exists
run: |
if ! git ls-remote --exit-code origin $SOURCE_BRANCH; then
git checkout -b $SOURCE_BRANCH $TARGET_BRANCH
git push origin $SOURCE_BRANCH
fi

- name: Checkout repo
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -135,10 +144,10 @@ jobs:
title: ${{ env.title }}
token: ${{ secrets.PAT }}
body: |
🚀 PR to bump `uv.lock` in `${{ inputs.target-branch }}`.
🚀 PR to bump `uv.lock` in `${{ inputs.target-branch }}`.

📝 Please remember the following to-do's before merge:
- [ ] Verify the presubmit CI
📝 Please remember the following to-do's before merge:
- [ ] Verify the presubmit CI

🙏 Please merge this PR only if the CI workflow completed successfully.
commit-message: ${{ env.title }}
Expand Down
Loading