-
Notifications
You must be signed in to change notification settings - Fork 279
32 lines (28 loc) · 947 Bytes
/
devnet-sync.yml
File metadata and controls
32 lines (28 loc) · 947 Bytes
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
name: Devnet sync
on:
schedule:
- cron: "0 10 * * *"
permissions:
contents: read
jobs:
devnet-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: develop
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
host: ${{ secrets.SYNC_HOST }}
username: ${{ secrets.SYNC_USERNAME }}
password: ${{ secrets.SYNC_PASSWORD }}
port: ${{ secrets.SYNC_PORT }}
script_stop: true
script: bash devnet-sync-result.sh