This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Report Snapshot | |
on: | |
push: | |
branches: [feat/338_WeeklyReportScript] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
environment: preview | |
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: | |
GITHUB_TOKEN: ${{ secrets.REPORT_GITHUB_TOKEN }} | |
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 <[email protected]> | |
branch: update-report-snapshot |