-
Notifications
You must be signed in to change notification settings - Fork 27
169 lines (133 loc) · 8.06 KB
/
sync-apis.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Workflow to upload APIs to docs staging environment
name: Sync OpenAPI definition to ReadMe staging
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
sync:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Update NFT API in docs
- name: GitHub action to update NFT API
uses: readmeio/[email protected]
with:
rdme: openapi nft/nfts.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.NFT_API_ID }}
# Update Notify API in docs
- name: GitHub action to update Notify API
uses: readmeio/[email protected]
with:
rdme: openapi notify/notify.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.NOTIFY_API_ID }}
# Update Transfers API in docs
- name: GitHub action to update Transfers API
uses: readmeio/[email protected]
with:
rdme: openapi transfers/alchemy_getAssetTransfers.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.TRANSFERS_API_ID }}
# Update Gas Manager Admin API in docs
- name: GitHub action to update Gas Manager Admin API
uses: readmeio/[email protected]
with:
rdme: openapi account-abstraction/gas_manager_admin.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.GAS_MANAGER_ADMIN_API_ID }}
# =================================================== Update Starknet APIs in Docs ===================================================
- name: Github action to update Starknet API - Add Declare Transaction
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_addDeclareTransaction.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_ADDDECLARETRANSACTION_ID }}
- name: Github action to update Starknet API - Get Class At
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getClassAt.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETCLASSAT_ID }}
- name: Github action to update Starknet API - Add Deploy Account Transaction
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_addDeployAccountTransaction.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_ADDDEPLOYACCOUNTTRANSACTION_ID }}
- name: Github action to update Starknet API - Get Class Hash At
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getClassHashAt.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETCLASSHASHAT_ID }}
- name: Github action to update Starknet API - Add Invoke Transaction
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_addInvokeTransaction.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_ADDINVOKETRANSACTION_ID }}
- name: Github action to update Starknet API - Get Events
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getEvents.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETEVENTS_ID }}
- name: Github action to update Starknet API - Block Hash And Number
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_blockHashAndNumber.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_BLOCKHASHANDNUMBER_ID }}
- name: Github action to update Starknet API - Get Nonce
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getNonce.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETNONCE_ID }}
- name: Github action to update Starknet API - Block Number
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_blockNumber.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_BLOCKNUMBER_ID }}
- name: Github action to update Starknet API - Get State Update
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getStateUpdate.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETSTATEUPDATE_ID }}
- name: Github action to update Starknet API - Call
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_call.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_CALL_ID }}
- name: Github action to update Starknet API - Get Storage At
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getStorageAt.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETSTORAGEAT_ID }}
- name: Github action to update Starknet API - Chain Id
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_chainId.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_CHAINID_ID }}
- name: Github action to update Starknet API - Get Transaction By Block Id And Index
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getTransactionByBlockIdAndIndex.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETTRANSACTIONBYBLOCKIDANDINDEX_ID }}
- name: Github action to update Starknet API - Estimate Fee
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_estimateFee.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_ESTIMATEFEE_ID }}
- name: Github action to update Starknet API - Get Transaction By Hash
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getTransactionByHash.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETTRANSACTIONBYHASH_ID }}
- name: Github action to update Starknet API - Get Block Transaction Count
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getBlockTransactionCount.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETBLOCKTRANSACTIONCOUNT_ID }}
- name: Github action to update Starknet API - Get Transaction Receipt
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getTransactionReceipt.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETTRANSACTIONRECEIPT_ID }}
- name: Github action to update Starknet API - Get Block With Tx Hashes
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getBlockWithTxHashes.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETBLOCKWITHTXHASHES_ID }}
- name: Github action to update Starknet API - Pending Transactions
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_pendingTransactions.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_PENDINGTRANSACTIONS_ID }}
- name: Github action to update Starknet API - Get Block With Txs
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getBlockWithTxs.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETBLOCKWITHTXS_ID }}
- name: Github action to update Starknet API - Syncing
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_syncing.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_SYNCING_ID }}
- name: Github action to update Starknet API - Get Class
uses: readmeio/[email protected]
with:
rdme: openapi starknet/starknet_getClass.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.STARKNET_GETCLASS_ID }}
# ====================================================================================================================================