-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1013 Bytes
/
cron.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
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/abap-openapi/sap-event-mesh-openapi/main/src/messaging.json em_messaging
ls
cp ./test/generated/*.abap ../generated-sap-event-mesh-openapi/src/
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