From cf9254c60ccf92d53b2ab263a5a00c487d28f919 Mon Sep 17 00:00:00 2001 From: Moon <108756201+LifeAdventurer@users.noreply.github.com> Date: Sun, 9 Mar 2025 16:12:07 +0800 Subject: [PATCH] CI: Fix permission issue in static.yml (#65) --- .github/workflows/static.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index e5cdbf6..efad8f7 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -11,7 +11,7 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: read + contents: write pages: write id-token: write @@ -35,7 +35,7 @@ jobs: - name: Write Commit Hash run: | cat << EOF | tee fortune_generator/json/commit_hash.json > /dev/null - {"commit_hash": "$(git rev-parse HEAD)"} + { "commit_hash": "$(git rev-parse HEAD)" } EOF - name: Deploy