Update lock.json #31
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 lock.json | |
on: | |
push: | |
branches: | |
- dependabot/pip/** | |
- update_flake_lock_action | |
pull_request: | |
branches: | |
- dependabot/pip/** | |
- update_flake_lock_action | |
workflow_dispatch: # allows manual triggering | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
jobs: | |
lockfile: | |
name: Commit new lock.json | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Relock dependencies after requirements.txt change | |
run: | | |
nix run '.#relock-dependencies' | |
- uses: stefanzweifel/git-auto-commit-action@v5.0.1 | |
with: | |
commit_message: "[dependabot skip] Relock dependencies" | |
branch: ${{ github.head_ref }} |