ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

use deploy key for flake update prs

Signed-off-by: marshmallow <github@althaea.zone>

authored by marshmallow and committed by GitHub f715529f a83adb39

+11 -6
+11 -6
.github/workflows/follow-nixpkgs.yml
··· 22 if: needs.pre-job.outputs.number == '0' 23 steps: 24 - uses: actions/checkout@v4 25 - uses: cachix/install-nix-action@v31 26 with: 27 nix_path: nixpkgs=channel:nixos-unstable ··· 32 - run: | 33 git config user.name 'github-actions[bot]' 34 git config user.email 'github-actions[bot]@users.noreply.github.com' 35 - - run: git switch -c ci/flake-update-${{ github.run_number }} 36 - run: nix flake update --commit-lock-file 37 - - run: git push --set-upstream origin ci/flake-update-${{ github.run_number }} 38 - - name: create pull request 39 - run: gh pr create -B main --title "Update flake.lock $(date +'%Y-%m-%d')" --fill --label flake-lock-update 40 - env: 41 - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
··· 22 if: needs.pre-job.outputs.number == '0' 23 steps: 24 - uses: actions/checkout@v4 25 + with: 26 + ssh-key: ${{ secrets.FOLLOW_NIXPKGS_PRIVATE_KEY }} 27 - uses: cachix/install-nix-action@v31 28 with: 29 nix_path: nixpkgs=channel:nixos-unstable ··· 34 - run: | 35 git config user.name 'github-actions[bot]' 36 git config user.email 'github-actions[bot]@users.noreply.github.com' 37 - run: nix flake update --commit-lock-file 38 + - name: Get Date 39 + id: date 40 + run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" 41 + - name: Create Pull Request 42 + uses: peter-evans/create-pull-request@v7 43 + with: 44 + title: Update flake.lock ${{ steps.date.outputs.date }} 45 + labels: flake-lock-update 46 + branch: ci/flake-update