Skip to content

Commit baf5054

Browse files
committed
feat: init action
init action
1 parent 5dc91b4 commit baf5054

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

action.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Prerequisites:
2+
# - silverhand-io/actions-node-pnpm-run-steps@v3
3+
# - environment variables: DB_URL
4+
5+
name: Run Logto DB alteration steps
6+
description: This action is used to run Logto DB alteration steps based on a given branch
7+
inputs:
8+
branch:
9+
description: "Alterations source branch"
10+
required: true
11+
default: ${{ github.head_ref }}
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ inputs.branch }}
20+
path: alterations
21+
- name: Prepack ci for alterations
22+
working-directory: alterations
23+
shell: bash
24+
run: |
25+
pnpm i
26+
pnpm prepack
27+
- name: Run alteration scripts
28+
working-directory: alterations
29+
shell: bash
30+
run: |
31+
pnpm cli db alt deploy next

0 commit comments

Comments
 (0)