File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed
Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 1+ name : update
2+
3+ on :
4+ schedule :
5+ # Nightly at 00:00 UTC
6+ - cron : " 0 0 * * *"
7+ workflow_dispatch : {}
8+
9+ permissions : {}
10+
11+ jobs :
12+ update :
13+ runs-on : ubuntu-latest
14+ timeout-minutes : 10
15+ permissions :
16+ contents : write
17+ pull-requests : write
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v6
21+ with :
22+ persist-credentials : false
23+ fetch-depth : 0
24+
25+ - name : Install Foundry
26+ uses : foundry-rs/foundry-toolchain@v1
27+ with :
28+ version : nightly
29+
30+ - name : Run sync
31+ shell : bash
32+ run : |
33+ set -euo pipefail
34+ chmod +x scripts/sync.sh
35+ scripts/sync.sh
36+
37+ - name : Create pull request
38+ uses : peter-evans/create-pull-request@v8
39+ with :
40+ commit-message : " chore: interface update"
41+ title : " chore: interface update"
42+ body : |
43+ Automated nightly sync via `scripts/sync.sh`.
44+
45+ - Trigger: scheduled workflow
46+ - Notes: PR is only created when there are file changes.
47+ branch : chore/nightly-sync
48+ delete-branch : true
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function main () {
2222 log $GREEN " Syncing specifications"
2323
2424 # Clone specs repo and copy interface specs
25- git clone --depth 1 git@ github.com: tempoxyz/tempo.git specs
25+ git clone --depth 1 https:// github.com/ tempoxyz/tempo.git specs
2626 cp -r specs/docs/specs/src/interfaces src
2727 rm -rf specs
2828
You can’t perform that action at this time.
0 commit comments