From 97495e11ce3b0e9319e30699ea290ef297694f80 Mon Sep 17 00:00:00 2001 From: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:27:12 +0100 Subject: [PATCH] Add weekly automated command output update workflow (#1135) * add basic update workflow * remove unused line * update workflow --- .github/workflows/test.yml | 2 +- .github/workflows/update.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a2489665..7a43d2c0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: name: mdbook test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install mdbook run: | diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 000000000..87e7043bc --- /dev/null +++ b/.github/workflows/update.yml @@ -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 "update@update.com" + 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