修复 GitHub Actions 权限问题
Some checks failed
Auto Push on Tag / push-code (push) Has been cancelled

This commit is contained in:
MCNeteaseDevs
2026-03-25 18:55:32 +08:00
parent e5ecce5841
commit 8f48148961

View File

@@ -8,6 +8,10 @@ on:
tags: tags:
- 'sync-*' - 'sync-*'
# 授予写入权限
permissions:
contents: write
jobs: jobs:
push-code: push-code:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -56,4 +60,4 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "- **标签**: ${{ steps.tag_info.outputs.tag_name }}" >> $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 "- **Commit**: ${{ steps.tag_info.outputs.commit_sha }}" >> $GITHUB_STEP_SUMMARY
echo "- **时间**: $(date)" >> $GITHUB_STEP_SUMMARY echo "- **时间**: $(date)" >> $GITHUB_STEP_SUMMARY