Skip to content
name: Update Report Snapshot
env:
REPORT_GITHUB_TOKEN: ${{ secrets.REPORT_GITHUB_TOKEN }}
on:
push:
branches: [feat/338_WeeklyReportScript]
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
jobs:
default:
runs-on: ubuntu-latest
environment: production
permissions:
pull-requests: write # open PR
contents: write # update snapshots
steps:
- uses: actions/checkout@v3
with:
repository: WhiteMinds/neuron-troubleshooting
ref: feat/338_WeeklyReportScript
- name: report:update
run: |
yarn install
yarn workspace @magickbase-website/scripts report:update
git add packages/scripts/snapshots
- name: Set GPG
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Open PR to repo
uses: peter-evans/create-pull-request@v5
with:
title: Update Report Snapshot
commit-message: 'feat: update report snapshot'
body: 'After this PR is merged, a corresponding discussion will be automatically created'
committer: WhiteMind <whitemind@qq.com>
branch: update-report-snapshot