diff --git a/.github/workflows/weekly.yaml b/.github/workflows/weekly.yaml index c170f4ea..83b6de4f 100644 --- a/.github/workflows/weekly.yaml +++ b/.github/workflows/weekly.yaml @@ -8,12 +8,13 @@ on: - cron: '30 10 * * 5' # This sets the workflow to run at 10:00 UTC+0 every Friday (6 PM Beijing time) workflow_dispatch: # This allows you to manually trigger the workflow +permissions: + contents: write + pull-requests: write + jobs: generate-report: runs-on: ubuntu-22.04 - permissions: - contents: write - id-token: write steps: - name: Checkout repository uses: actions/checkout@v4 @@ -48,11 +49,10 @@ jobs: - name: Create pull request uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.GITHUB_TOKEN }} commit-message: 'docs: new weekly report' committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> branch: weekly-report title: 'Weekly Report' - body: 'This PR is automatically generated by GitHub Actions. Please review it.' + body: 'This is the weekly report for the current week, automatically generated by GitHub Actions.' team-reviewers: auto-core