diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index c2eca77..194d605 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -8,6 +8,10 @@ on: tags: - 'sync-*' +# 授予写入权限 +permissions: + contents: write + jobs: push-code: runs-on: ubuntu-latest @@ -56,4 +60,4 @@ jobs: echo "" >> $GITHUB_STEP_SUMMARY echo "- **标签**: ${{ steps.tag_info.outputs.tag_name }}" >> $GITHUB_STEP_SUMMARY echo "- **Commit**: ${{ steps.tag_info.outputs.commit_sha }}" >> $GITHUB_STEP_SUMMARY - echo "- **时间**: $(date)" >> $GITHUB_STEP_SUMMARY + echo "- **时间**: $(date)" >> $GITHUB_STEP_SUMMARY \ No newline at end of file