From 8628963dbaa219463498cdaf4d8304a59bf62ac1 Mon Sep 17 00:00:00 2001 From: WhiteMind Date: Wed, 24 Jan 2024 20:14:22 +0800 Subject: [PATCH] tmp2 --- .github/workflows/update_report_snapshot.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_report_snapshot.yaml b/.github/workflows/update_report_snapshot.yaml index 61a2c117..63411e88 100644 --- a/.github/workflows/update_report_snapshot.yaml +++ b/.github/workflows/update_report_snapshot.yaml @@ -1,4 +1,6 @@ name: Update Report Snapshot +env: + REPORT_GITHUB_TOKEN: ${{ secrets.REPORT_GITHUB_TOKEN }} on: push: @@ -8,16 +10,21 @@ on: - cron: '0 0 * * 1' jobs: - Deploy-Production: + default: runs-on: ubuntu-latest + environment: production + permissions: + # peter-evans/create-pull-request requires the following permissions: + pull-requests: write + contents: write + steps: - uses: actions/checkout@v3 with: repository: WhiteMinds/neuron-troubleshooting ref: feat/338_WeeklyReportScript + - name: report:update - env: - REPORT_GITHUB_TOKEN: ${{ secrets.REPORT_GITHUB_TOKEN }} run: | yarn install yarn workspace @magickbase-website/scripts report:update