Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions .github/workflows/update-cargo-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
contents: write
actions: write

jobs:
update-cargo-lock:
Expand All @@ -26,9 +27,11 @@ jobs:
run: cargo generate-lockfile

- name: Commit updated Cargo.lock
id: commit-lock
run: |
if git diff --quiet Cargo.lock; then
echo "Cargo.lock is already up to date."
echo "updated=false" >> "$GITHUB_OUTPUT"
exit 0
fi

Expand All @@ -37,3 +40,13 @@ jobs:
git add Cargo.lock
git commit -m "Update Cargo.lock"
git push
echo "updated=true" >> "$GITHUB_OUTPUT"

- name: Trigger downstream CI workflows
if: steps.commit-lock.outputs.updated == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run tests.yml --ref "${{ github.ref_name }}"
gh workflow run e2e-tests.yml --ref "${{ github.ref_name }}"
gh workflow run benchmarks.yml --ref "${{ github.ref_name }}"
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.