Update flake.lock #9
This file contains hidden or 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 flake.lock | |
| env: | |
| needs_nix_setup: true | |
| on: | |
| workflow_dispatch: # allows manual triggering | |
| schedule: | |
| - cron: "0 0 * * 0" # runs weekly on Sunday at 00:00 | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| lockfile: | |
| runs-on: self-hosted-hoprnet-small | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| disable-sudo: false | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - name: Install Nix | |
| if: env.needs_nix_setup == 'true' | |
| uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 | |
| if: env.needs_nix_setup == 'true' | |
| with: | |
| name: hoprnet | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| env: | |
| USER: runner | |
| - name: Install NodeJS | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: 22.21.1 | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Update flake.lock | |
| uses: DeterminateSystems/update-flake-lock@c5930b397a673a70ca70be06020e943aeac310a1 # v27 | |
| id: update | |
| with: | |
| pr-title: "chore(nix): update flake.lock" | |
| pr-labels: | | |
| dependencies | |
| automated | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Configure PR and mark as ready | |
| run: | | |
| gh pr edit ${{ steps.update.outputs.pull-request-number }} --add-assignee "@copilot" | |
| gh pr edit ${{ steps.update.outputs.pull-request-number }} --add-reviewer "hoprnet/hopr-development" | |
| gh pr ready ${{ steps.update.outputs.pull-request-number }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |