-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (43 loc) · 1.14 KB
/
copy-sdk.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Copy SDK Files
on:
workflow_dispatch:
schedule:
# Runs every day at 6pm PST (2am UST)
- cron: '0 2 * * *'
jobs:
sync-docs-and-create-pr:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Set Up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: |
yarn install --frozen-lockfile
- name: Run Sync Script
run: |
chmod +x sync_script.sh
./sync_script.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Updated SDK spec changes from provenance/x
branch: update-sdk-docs
delete-branch: true
title: 'Update SDK docs'
labels: |
automated pr
assignees: webbushka
reviewers: peter-evans
team-reviewers: |
blockchain-core