From 16b793a17fe171504f63092a83b5110a6e26782a Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 5 Nov 2023 20:54:57 +0300 Subject: [PATCH] CI: use PATs in update workflows --- .github/workflows/update-flake.yml | 6 +++++- .github/workflows/update-pkgs.yml | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update-flake.yml index 1a1094d..c2974b4 100644 --- a/.github/workflows/update-flake.yml +++ b/.github/workflows/update-flake.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + token: "${{ secrets.GH_TOKEN}}" - uses: DeterminateSystems/nix-installer-action@main @@ -26,7 +28,9 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "Update flake" + commit_message: "[CI]: update flake inputs" + push_options: "--force" + commit_user_name: GitHub Actions build: needs: update diff --git a/.github/workflows/update-pkgs.yml b/.github/workflows/update-pkgs.yml index e8131fc..be80a99 100644 --- a/.github/workflows/update-pkgs.yml +++ b/.github/workflows/update-pkgs.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + token: "${{ secrets.GH_TOKEN}}" - uses: DeterminateSystems/nix-installer-action@main @@ -29,8 +31,9 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4 with: - commit_message: "Update packages" + commit_message: "[CI]: update npins" push_options: "--force" + commit_user_name: GitHub Actions build: needs: update