Skip to content

Commit

Permalink
refactor npm-publish workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdikhody committed Oct 8, 2024
1 parent cfda162 commit 728a9fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh -o install.sh
chmod +x install.sh
expect << EOF
output=$(expect << EOF
spawn sudo ./install.sh
expect {
"*customize the panel settings?*" { send "y\r" }
Expand All @@ -35,10 +35,8 @@ jobs:
}
expect eof
EOF
)
- name: Get x-ui Settings
run: |
output=$(x-ui settings)
echo "$output"
webBasePath=$(echo "$output" | grep -oP 'webBasePath: \K\S+' | sed 's|^/||;s|/$||')
sed -i "s|const webBasePath = \".*\";|const webBasePath = \"$webBasePath\";|g" tests/utils/api.ts
Expand Down

0 comments on commit 728a9fa

Please sign in to comment.