-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 2.4 KB
/
cron.yml
File metadata and controls
47 lines (45 loc) · 2.4 KB
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
name: cron
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Run npm steps
run: |
cd ..
git clone https://github.com/abap-openapi/abap-openapi-client.git
cd abap-openapi-client
npm install && npm test
rm ./test/generated/*.abap
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json githubcom
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-2.18/ghes-2.18.json ghes218
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-2.19/ghes-2.19.json ghes219
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-2.20/ghes-2.20.json ghes220
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-2.21/ghes-2.21.json ghes221
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-2.22/ghes-2.22.json ghes222
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.0/ghes-3.0.json ghes30
node index.mjs https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/github.ae/github.ae.json githubae
ls
cp ./test/generated/*.abap ../generated-github/
cd ../generated-github/
wget -O zcl_oapi_json.clas.abap https://raw.githubusercontent.com/abap-openapi/abap-openapi-client/main/src/zcl_oapi_json.clas.abap
wget -O zcl_oapi_json.clas.locals_imp.abap https://raw.githubusercontent.com/abap-openapi/abap-openapi-client/main/src/zcl_oapi_json.clas.locals_imp.abap
wget -O zcl_oapi_json.clas.locals_def.abap https://raw.githubusercontent.com/abap-openapi/abap-openapi-client/main/src/zcl_oapi_json.clas.locals_def.abap
ls
git status
- name: Push
if: github.ref == 'refs/heads/main'
run: |
git status
git config --global user.email "actions@github.com"
git config --global user.name "Actions CI"
git add -A
git diff-index --quiet HEAD || git commit -m "Automatic update"
git push