From 7aaf1131d2cc9bbe14b9948528fecb2cb6907313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 28 Feb 2025 00:53:44 +0800 Subject: [PATCH] ci: update --- .github/workflows/checksums.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checksums.yml b/.github/workflows/checksums.yml index c927f72..5e97831 100644 --- a/.github/workflows/checksums.yml +++ b/.github/workflows/checksums.yml @@ -4,6 +4,8 @@ on: branches: - main pull_request: +permissions: + contents: write jobs: checksums: runs-on: cn @@ -24,9 +26,7 @@ jobs: filename=$(basename "$file"); sha256sum -b "$file" | sed "s|$file|$filename|" > "${file}.sha256"; done + git add -A + git commit -m "chore: update checksums" || true + git push origin ${{ github.ref }} unset IFS - - name: Commit changes - uses: actions/git-auto-commit-action@v5 - with: - commit_message: "chore: update checksums" - file_pattern: "*.sha256"