Skip to content

Commit 86ac1e7

Browse files
test action
1 parent 12d9174 commit 86ac1e7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/split.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Split Packages
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "New version"
8+
required: true
9+
packages:
10+
description: "Packages to deploy (JSON array string)"
11+
required: true
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Show input
18+
run: |
19+
echo "Deploying version: ${{ github.event.inputs.version }}"
20+
echo "Packages (raw): ${{ github.event.inputs.packages }}"
21+
22+
# Parse string input into array using jq
23+
echo '${{ github.event.inputs.packages }}' | jq -r '.[]' > package-list.txt
24+
25+
echo "Package list:"
26+
cat package-list.txt

0 commit comments

Comments
 (0)