Skip to content

Commit

Permalink
Add weekly automated command output update workflow (#1135)
Browse files Browse the repository at this point in the history
* add basic update workflow

* remove unused line

* update workflow
  • Loading branch information
zerosnacks authored Mar 9, 2024
1 parent 70b58eb commit 97495e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: mdbook test

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install mdbook
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: update
on:
schedule:
# Run weekly
- cron: "0 0 * * SUN"
workflow_dispatch:
# Needed so we can run it manually

jobs:
update:
name: Update
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "update"
./scripts/gen_output.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "update command output"
title: "chore(output): weekly command output update"
body: |
Automation to keep command output up to date.
branch: chore/output-update

0 comments on commit 97495e1

Please sign in to comment.