From 7a979cd1a0db5886ae35d09a98d867e300ff318d Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 20:38:42 +0800 Subject: [PATCH] =?UTF-8?q?ci(docker):=20=E4=B8=BA=20manifest=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=93=8D=E4=BD=9C=E6=B7=BB=E5=8A=A0=20GITHUB=5FTOKEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在更新 manifest 时添加 GITHUB_TOKEN以解决权限问题。这个改动解决了在没有适当 权限时无法成功更新 manifest 的问题。 --- .github/workflows/docker-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 45642b0..e7adbf1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -151,6 +151,7 @@ jobs: uses: actions/checkout@v4 with: ref: manifest + token: ${{ secrets.GITHUBTOKEN }} - name: Update manifest if: github.event_name == 'push' uses: mikefarah/yq@master @@ -165,3 +166,4 @@ jobs: commit_user_name: "github-actions[bot]" commit_user_email: "github-actions[bot]@users.noreply.github.com" commit_author: "github-actions[bot] " +