forked from foundry-rs/book
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (31 loc) · 931 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
with:
submodules: recursive
- name: Update
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
git config --global url."https://github.com/".insteadOf "[email protected]:"
./scripts/gen_output.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
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