-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (37 loc) · 1.11 KB
/
reset-organization.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
name: Reset organization
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
reset_stock_items:
name: Reset stock_items
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Node 🧰
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install 📦
run: |
npm install -g @commercelayer/cli
commercelayer plugins:install seeder && exit 0
exit 0
- name: Login 🔑
run: |
commercelayer applications:login \
--clientId ${{ secrets.CL_CLIENT_ID }} \
--clientSecret ${{ secrets.CL_CLIENT_SECRET }} \
--organization ${{ secrets.CL_ORGANIZATION }} \
--alias cli-admin
- name: Log 🔎
run: |
commercelayer version
commercelayer plugins
commercelayer applications:current
- name: Seed 🌱
run: commercelayer seeder:seed -b custom -n reset_stock_items -u ./packages/drop-in/seed