From 253b595ea01d7b1497e8075283fff12d05680762 Mon Sep 17 00:00:00 2001 From: WhiteMind Date: Wed, 24 Jan 2024 18:35:20 +0800 Subject: [PATCH] tmp: test --- .github/workflows/update_report_snapshot.yaml | 11 ++++++++--- packages/scripts/.env.example | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_report_snapshot.yaml b/.github/workflows/update_report_snapshot.yaml index adca44ce..cb0b00e0 100644 --- a/.github/workflows/update_report_snapshot.yaml +++ b/.github/workflows/update_report_snapshot.yaml @@ -1,6 +1,8 @@ name: Update Report Snapshot on: + push: + branches: [feat/338_WeeklyReportScript] workflow_dispatch: schedule: - cron: '0 0 * * 1' @@ -11,11 +13,14 @@ jobs: steps: - uses: actions/checkout@v3 with: - repository: Magickbase/websites + repository: WhiteMinds/neuron-troubleshooting + ref: feat/338_WeeklyReportScript - name: report:update + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | yarn install - yarn report:update + yarn workspace @magickbase-website/scripts report:update git add packages/scripts/snapshots - name: Set GPG @@ -32,5 +37,5 @@ jobs: title: Update Report Snapshot commit-message: 'feat: update report snapshot' body: 'After this PR is merged, a corresponding discussion will be automatically created' - committer: Chen Yu + committer: WhiteMind branch: update-report-snapshot diff --git a/packages/scripts/.env.example b/packages/scripts/.env.example index 618c6420..2131adfd 100644 --- a/packages/scripts/.env.example +++ b/packages/scripts/.env.example @@ -1,3 +1,3 @@ # For accessing api.github.com # https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28 -GITHUB_TOKEN= +REPORT_GITHUB_TOKEN=